Commit 494d5e56 authored by rondev's avatar rondev Committed by bgm

Issue #1415406 by rondev : deprecate site_offline variable in favor of maintenance_mode

parent 3a3dc4f0
......@@ -162,7 +162,8 @@ function boost_init() {
|| $_SERVER['SERVER_SOFTWARE'] === 'PHP CLI'
|| ($_SERVER['REQUEST_METHOD'] != 'GET' && $_SERVER['REQUEST_METHOD'] != 'HEAD')
|| isset($_GET['nocache'])
|| variable_get('site_offline', 0)
|| variable_get('maintenance_mode', 0)
|| defined('MAINTENANCE_MODE')
|| isset($_SESSION['messages']) // do not cache pages with messages
) {
$_boost['cache_this'] = FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment