Skip to content
Snippets Groups Projects
Commit 91b20717 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#168909 follow up by chx: return page cache status earlier to avoid new output buffer being opened

parent 5b7b48a8
No related branches found
No related tags found
No related merge requests found
......@@ -503,6 +503,9 @@ function page_get_cache($status_only = FALSE) {
static $status = FALSE;
global $user, $base_root;
if ($status_only) {
return $status;
}
$cache = NULL;
if (!$user->uid && $_SERVER['REQUEST_METHOD'] == 'GET' && count(drupal_set_message()) == 0) {
......@@ -514,7 +517,7 @@ function page_get_cache($status_only = FALSE) {
}
}
return $status_only ? $status : $cache;
return $cache;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment