aboutsummaryrefslogtreecommitdiffstats
path: root/upgrade.php
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2008-11-19 20:03:49 +0000
committerrub <rub@piwigo.org>2008-11-19 20:03:49 +0000
commite41325376b79f10e6dbcb20a6f87de9d4c7c852d (patch)
tree3be77c0f844caf143e18feac3b6cdec1daf3f0e4 /upgrade.php
parent3c2c976441dce2dff24f17348add1b52a5d7b4e3 (diff)
Delete caches and optimize tables on upgrade
git-svn-id: http://piwigo.org/svn/trunk@2890 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'upgrade.php')
-rw-r--r--upgrade.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/upgrade.php b/upgrade.php
index 20ab360da..97e1b5247 100644
--- a/upgrade.php
+++ b/upgrade.php
@@ -298,8 +298,6 @@ if (isset($_POST['submit']) and check_upgrade())
l10n('perform a maintenance check')
);
- invalidate_user_cache();
-
// c13y_upgrade plugin means "check integrity after upgrade", so it
// becomes useful just after an upgrade
$query = '
@@ -308,6 +306,14 @@ REPLACE INTO '.PLUGINS_TABLE.'
VALUES (\'c13y_upgrade\', \'active\')
;';
pwg_query($query);
+
+ // Delete cache data
+ invalidate_user_cache(true);
+ $template->delete_compiled_templates();
+
+ // Tables Maintenance
+ do_maintenance_all_tables();
+
}
}