summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-11-26 08:18:50 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-11-26 08:18:50 +0000
commita069d064659b31df881593a12f490c726e7b5586 (patch)
treef1dd3b34080cdd1975edd539e9cbee1232c1fa82
parent045002e25c20fe67a54b1517642d120b087b5215 (diff)
downloadbrdo-a069d064659b31df881593a12f490c726e7b5586.tar.gz
brdo-a069d064659b31df881593a12f490c726e7b5586.tar.bz2
#195202 by pwolanin: clear block cache before page cache, so stale data will not end up in the cache
-rw-r--r--includes/cache.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/cache.inc b/includes/cache.inc
index 524ab1d41..140f25e65 100644
--- a/includes/cache.inc
+++ b/includes/cache.inc
@@ -133,8 +133,10 @@ function cache_clear_all($cid = NULL, $table = NULL, $wildcard = FALSE) {
global $user;
if (!isset($cid) && !isset($table)) {
- cache_clear_all(NULL, 'cache_page');
+ // Clear the block cache first, so stale data will
+ // not end up in the page cache.
cache_clear_all(NULL, 'cache_block');
+ cache_clear_all(NULL, 'cache_page');
return;
}