From a069d064659b31df881593a12f490c726e7b5586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Mon, 26 Nov 2007 08:18:50 +0000 Subject: #195202 by pwolanin: clear block cache before page cache, so stale data will not end up in the cache --- includes/cache.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'includes') 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; } -- cgit v1.2.3