Skip to content
Snippets Groups Projects
Commit 0a5386ee authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

#12350 by naquah, Need to clear caches after running update.php.

parent 3e9948e5
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
......@@ -419,6 +419,13 @@ function update_do_updates() {
else {
$percentage = 100;
}
// $update['module'] will be unset (the while loop above wasn't entered) when
// we are finished with all updates. Clear the cache.
if (!isset($update['module'])) {
db_query('DELETE FROM {cache}');
}
return array($percentage, isset($update['module']) ? 'Updating '. $update['module'] .' module' : 'Updating complete');
}
......
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