Split off from #606840-32: Enable internal page cache by default:

With page cache on, and with cached pages in the page cache… if you turn on maintenance mode, anon users continue to see the site itself instead of the maintenance mode version. And much worse: when disabling maintenance mode, the site doesn't show up again :P

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Wim Leers’s picture

Status: Active » Needs review
FileSize
1.01 KB
Wim Leers’s picture

Priority: Major » Critical
Issue summary: View changes

I actually think this is critical; without this, Drupal 8 can appear completely broken.

Updated IS.

Fabianx’s picture

Status: Needs review » Reviewed & tested by the community

Looks great!

We will have a test for this once, enable page cache by default is in.

dawehner’s picture

Oh that was such a annoying problem in earlier versions of Drupal!!

webchick’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs tests

Talked this over with alexpott in IRC. Since this issue is fixing a critical, and the other is only a major task, we should copy in whatever test coverage uncovered this bug from that issue over here.

dawehner’s picture

Talked this over with alexpott in IRC. Since this issue is fixing a critical, and the other is only a major task, we should copy in whatever test coverage uncovered this bug from that issue over here.

Well, the test coverage is by enabling page caching for most tests.

Wim Leers’s picture

Status: Needs work » Reviewed & tested by the community

Per #6.

effulgentsia’s picture

Issue tags: -Needs tests
FileSize
1.22 KB
2.13 KB

I agree with #5: this could use explicit test coverage both with and without page cache, that is independent of what our default happens to be.

Here's the test addition for that. Leaving the issue at RTBC, because this only changes test code (the test-only patch is also the interdiff), that can be sufficiently sanity checked by whichever core committer looks at this. Plus, anything that slips through their review can be addressed in a non-critical follow-up.

Berdir’s picture

Related issue bump: #2429671: "The website has encountered an error. Please try again later." page is cached. If this is critical then the other one might be too?

The last submitted patch, 8: 2453351-8-test-only.patch, failed testing.

  • webchick committed 5f80c8e on 8.0.x
    Issue #2453351 by effulgentsia, Wim Leers: Maintenance mode message ends...
webchick’s picture

Status: Reviewed & tested by the community » Fixed

Yeah, good point. Tentatively escalated that one to critical as well.

In the mean time, let's get this one out of the way. Thanks for the tests!

Committed and pushed to 8.0.x. Thanks!

Wim Leers’s picture

Lovely, thanks for the tests @effulgentsia!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

pounard’s picture

Version: 8.0.x-dev » 7.x-dev
Status: Closed (fixed) » Active
Issue tags: +Needs backport to D7

This seem to happen with Drupal 7 too, can someone confirm ?

pounard’s picture

Version: 7.x-dev » 8.0.x-dev

I am sorry I shouldn't have changed the version.

Wim Leers’s picture

Status: Active » Closed (fixed)

@pounard: please open a new issue, and add this as a related issue.