X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fcache_functions.php;h=902f21dce8e1966ca74beb4fa3e6470c303bb1d1;hb=91d298e5ec7193849a92bd4902abc02ffab8305b;hp=5181e879224817eb64cdbbdc2fa280d37270778f;hpb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60;p=mailer.git diff --git a/inc/libs/cache_functions.php b/inc/libs/cache_functions.php index 5181e87922..902f21dce8 100644 --- a/inc/libs/cache_functions.php +++ b/inc/libs/cache_functions.php @@ -18,6 +18,7 @@ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * + * Copyright (c) 2009, 2010 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -47,7 +48,7 @@ function FILTER_CACHE_DESTROY_ON_EXT_CHANGE ($data) { if (!isCacheInstanceValid()) return $data; // Remove cache - foreach (array('config','extension','modules') as $cache) { + foreach (array('config','extension','filter','modules') as $cache) { if ($GLOBALS['cache_instance']->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','extension','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