Commit a069d064 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#195202 by pwolanin: clear block cache before page cache, so stale data will...

#195202 by pwolanin: clear block cache before page cache, so stale data will not end up in the cache
parent 045002e2
......@@ -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;
}
......
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