summaryrefslogtreecommitdiff
path: root/includes/common.inc
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-09-07 07:11:15 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-09-07 07:11:15 +0000
commit2310bd97233228962fc833a986967de1b35acbb5 (patch)
treed03f1158e42cd6e91a1c7e9b084d816406bc3bfd /includes/common.inc
parentfa60c7630f0a6cb305d11f240b31ef2251ca9ce1 (diff)
downloadbrdo-2310bd97233228962fc833a986967de1b35acbb5.tar.gz
brdo-2310bd97233228962fc833a986967de1b35acbb5.tar.bz2
#54238 by gopherspidey and fago. Don't cache pages with messages.
Diffstat (limited to 'includes/common.inc')
-rw-r--r--includes/common.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc
index c4d17485f..234c8d94e 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -1586,7 +1586,7 @@ function _drupal_bootstrap_full() {
function page_set_cache() {
global $user, $base_root;
- if (!$user->uid && $_SERVER['REQUEST_METHOD'] == 'GET') {
+ if (!$user->uid && $_SERVER['REQUEST_METHOD'] == 'GET' && count(drupal_get_messages(NULL, FALSE)) == 0) {
// This will fail in some cases, see page_get_cache() for the explanation.
if ($data = ob_get_contents()) {
$cache = TRUE;