summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-02-25 13:49:26 +0000
committerDries Buytaert <dries@buytaert.net>2009-02-25 13:49:26 +0000
commit116de1793300f2aee3d71297c26ec448f8141196 (patch)
tree1e5d4b09fd6eac05886b7827bc48c0740bb4c64c
parent71de5fc2457b2a9b24ab8b64715a14d631647d33 (diff)
downloadbrdo-116de1793300f2aee3d71297c26ec448f8141196.tar.gz
brdo-116de1793300f2aee3d71297c26ec448f8141196.tar.bz2
- Patch #381438 by drumm: do not use page cache for drupal.sh requests.
-rw-r--r--includes/bootstrap.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index a84257341..c9cd71486 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -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) {