mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 18:01:31 +02:00
Delete caches and optimize tables on upgrade
merge -c2890 from trunk to branch 2.0 The exact copy of commit log in 2890. git-svn-id: http://piwigo.org/svn/branches/2.0@2891 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+8
-2
@@ -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();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user