Problem:

Setting site status to offline in admin > settings seems to have no effect when cache is enabled. The site goes offline correctly only when cache is disabled

To reproduce:

1. Go to admin > setttings.
2. Enable cache and save.
3. Set site status to offline.
4. View the site as another user, and see that the site is still online.
5. Disable cache.
6. See that the site is now correctly offline.

Test system:
- drupal-cvs
- postgresql 8.0
- apache2
- firefox

Comments

drewish’s picture

I'm not able to replicate this. After following the steps you provided, I checked that the maintence screen was displayed for non-admin users when the site was offline and as soon as the change was made from offline to online the page was displayed correctly.

Brian@brianpuccio.net’s picture

Status: Active » Fixed

I tried to replicate same (though I use mysql and not postgresql) and was unable to when using 4.7.beta6. The drupal_site_offline function seems to work fine with caching enabled for anon. visitors. Please re-open if the problem persists with 4.7.beta6 since you ran into this problem several months ago.

Anonymous’s picture

Status: Fixed » Closed (fixed)