Skip to content
Snippets Groups Projects
Commit a069d064 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -133,8 +133,10 @@ function cache_clear_all($cid = NULL, $table = NULL, $wildcard = FALSE) { ...@@ -133,8 +133,10 @@ function cache_clear_all($cid = NULL, $table = NULL, $wildcard = FALSE) {
global $user; global $user;
if (!isset($cid) && !isset($table)) { 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_block');
cache_clear_all(NULL, 'cache_page');
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment