When the site is taken off-line, the cache should be wiped; otherwise, Apache will continue serving the cached pages.

CommentFileSizeAuthor
#7 boost-178914.patch2.64 KBmikeytown2

Comments

Christefano-oldaccount’s picture

This should be added to the documentation.

Arto’s picture

Title: Wipe boost cache when site goes offline » Ensure the static page cache gets wiped when the site is taken offline
Version: 5.x-1.x-dev » 6.x-1.x-dev
Component: Code » Caching logic
Assigned: bjaspan » Arto
Status: Active » Fixed

Changeset [148720] implements this for 6.x-1.x-dev.

Arto’s picture

Title: Ensure the static page cache gets wiped when the site is taken offline » Ensure the cache gets wiped when site goes offline
christefano’s picture

Category: task » feature
Status: Fixed » Active

Arto, feel free to close this if you prefer I open a new issue for this. I propose that this be changed to a configurable option. It's very useful to be able to enable maintenance mode but continue serving HTML pages a la Boost.

Arto’s picture

Christefano, I agree with you that making it configurable is probably a good idea. Let's keep this open, it should be easy enough to implement the next time I'm doing any work on the 6.x branch.

mikeytown2’s picture

Title: Ensure the cache gets wiped when site goes offline » Prevent the cache from getting wiped when site goes off-line
Component: Caching logic » Expiration logic
Assigned: Arto » Unassigned

Changing the issue tile to reflect this feature request. Need to see if this is possible due to css/js aggregation getting cleared when site goes off-line.

mikeytown2’s picture

Status: Active » Needs review
StatusFileSize
new2.64 KB

files/css & files/js do not get cleared; fairly straightforward patch.

mikeytown2’s picture

Status: Needs review » Reviewed & tested by the community
mikeytown2’s picture

Status: Reviewed & tested by the community » Fixed

Decided to commit this

Status: Fixed » Closed (fixed)

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

katharine_gates’s picture

I had a problem recently with this.... I put the site in maintenance mode and did some updates/added new modules. I took it back online when I was done, but the site continued to serve "Site Offline" messages until I manually flushed all caches. Is this a bug or a feature? Maybe I didn't configure correctly in the first place...