summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-04-04 17:33:20 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-04-04 17:33:20 +0000
commit0a5386eea7029f9f1a697abc181a72e7bad19fcf (patch)
tree5011fddc8b826ef004104cdc4585d3a126824577 /update.php
parent3e9948e529cbbb2c7f8c62de2be407b54e06755e (diff)
downloadbrdo-0a5386eea7029f9f1a697abc181a72e7bad19fcf.tar.gz
brdo-0a5386eea7029f9f1a697abc181a72e7bad19fcf.tar.bz2
#12350 by naquah, Need to clear caches after running update.php.
Diffstat (limited to 'update.php')
-rw-r--r--update.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/update.php b/update.php
index 403d4b716..3105cbc55 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');
}