From f1f7e5d4ad0d6bb5cbf170063ec7aec2abb3761d Mon Sep 17 00:00:00 2001 From: rvelices Date: Sun, 11 May 2014 08:26:41 +0000 Subject: added a persistent cache mechanism; used so far to cache image ids in flat view mode git-svn-id: http://piwigo.org/svn/trunk@28432 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/maintenance.php | 1 + admin/plugins_installed.php | 1 + 2 files changed, 2 insertions(+) (limited to 'admin') diff --git a/admin/maintenance.php b/admin/maintenance.php index 0b3e1424a..648461ae4 100644 --- a/admin/maintenance.php +++ b/admin/maintenance.php @@ -146,6 +146,7 @@ DELETE { $template->delete_compiled_templates(); FileCombiner::clear_combined_files(); + $persistent_cache->purge(true); break; } case 'derivatives': diff --git a/admin/plugins_installed.php b/admin/plugins_installed.php index d23e51ca4..a804e21ce 100644 --- a/admin/plugins_installed.php +++ b/admin/plugins_installed.php @@ -77,6 +77,7 @@ if (isset($_GET['action']) and isset($_GET['plugin'])) if ($_GET['action'] == 'activate' or $_GET['action'] == 'deactivate') { $template->delete_compiled_templates(); + $persistent_cache->purge(true); } redirect($base_url); } -- cgit v1.2.3