aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2014-05-11 08:26:41 +0000
committerrvelices <rv-github@modusoptimus.com>2014-05-11 08:26:41 +0000
commitf1f7e5d4ad0d6bb5cbf170063ec7aec2abb3761d (patch)
tree0e83ddba02373679c530f20bf3f7bc2f86fe2bf5 /admin
parentb4decbe52f0bb8213c0320e24ff292cd02e5657f (diff)
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
Diffstat (limited to '')
-rw-r--r--admin/maintenance.php1
-rw-r--r--admin/plugins_installed.php1
2 files changed, 2 insertions, 0 deletions
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);
}