Commit 33856adc authored by bgm's avatar bgm

issue #1242416 by tahiticlic, olbion, rootatwc, sijuwi: do not cache pages with drupal messages

parent 53d145d0
......@@ -163,6 +163,7 @@ function boost_init() {
|| ($_SERVER['REQUEST_METHOD'] != 'GET' && $_SERVER['REQUEST_METHOD'] != 'HEAD')
|| isset($_GET['nocache'])
|| variable_get('site_offline', 0)
|| 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