From 0a5386eea7029f9f1a697abc181a72e7bad19fcf Mon Sep 17 00:00:00 2001 From: Neil Drumm <drumm@3064.no-reply.drupal.org> Date: Tue, 4 Apr 2006 17:33:20 +0000 Subject: [PATCH] #12350 by naquah, Need to clear caches after running update.php. --- update.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/update.php b/update.php index 403d4b7163dd..3105cbc5565e 100644 --- a/update.php +++ b/update.php @@ -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'); } -- GitLab