Commit 116de179 authored by Dries's avatar Dries

- Patch #381438 by drumm: do not use page cache for drupal.sh requests.

parent 71de5fc2
......@@ -698,7 +698,7 @@ function page_get_cache($retrieve) {
global $user, $base_root;
static $ob_started = FALSE;
if ($user->uid || ($_SERVER['REQUEST_METHOD'] != 'GET' && $_SERVER['REQUEST_METHOD'] != 'HEAD') || count(drupal_get_messages(NULL, FALSE))) {
if ($user->uid || ($_SERVER['REQUEST_METHOD'] != 'GET' && $_SERVER['REQUEST_METHOD'] != 'HEAD') || count(drupal_get_messages(NULL, FALSE)) || $_SERVER['SERVER_SOFTWARE'] === 'PHP CLI') {
return FALSE;
}
if ($retrieve) {
......
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