X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fcache_functions.php;h=902f21dce8e1966ca74beb4fa3e6470c303bb1d1;hb=73af00cb3ac701a8385fc7d7df02553845403bb7;hp=e58854d92599e7eb1a3e850d5e45dff5ab02087b;hpb=16680c2d93b9df15ff01b6eb0b5c2fea04cfc9cd;p=mailer.git diff --git a/inc/libs/cache_functions.php b/inc/libs/cache_functions.php index e58854d925..902f21dce8 100644 --- a/inc/libs/cache_functions.php +++ b/inc/libs/cache_functions.php @@ -1,7 +1,7 @@ loadCacheFile($cache)) $GLOBALS['cache_instance']->removeCacheFile(); } // END - foreach @@ -61,7 +62,7 @@ function FILTER_CACHE_DESTROY_ON_ADMIN_CHANGE ($data) { if (!isCacheInstanceValid()) return false; // Remove cache - if ($GLOBALS['cache_instance']->loadCacheFile('admins')) $GLOBALS['cache_instance']->removeCacheFile(); + if ($GLOBALS['cache_instance']->loadCacheFile('admin')) $GLOBALS['cache_instance']->removeCacheFile(); // Return the data return $data; @@ -74,7 +75,7 @@ function FILTER_CACHE_DESTROY_ALL () { if (!isCacheInstanceValid()) return false; // Remove cache files - foreach (array('admin','admin_acls','config','extensions','modules','refdepths','refsystem','themes','revision','filter','imprint') as $cache) { + foreach (array('admin','admin_acls','config','extension','modules','refdepths','refsystem','themes','filter','imprint') as $cache) { /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, sprintf("Trying to remove cache %s.", $cache)); if ($GLOBALS['cache_instance']->loadCacheFile($cache)) $GLOBALS['cache_instance']->removeCacheFile(); } // END - foreach