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

4.7.x
Neil Drumm 2006-04-04 17:33:20 +00:00
parent 3e9948e529
commit 0a5386eea7
1 changed files with 7 additions and 0 deletions

View File

@ -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');
}