loadCacheFile($cache)) $GLOBALS['cache_instance']->removeCacheFile(); } // END - foreach // Return it return $data; } // Destroy the cache on changing admin function FILTER_CACHE_DESTROY_ON_ADMIN_CHANGE ($data) { // Skip this step if the cache instance is not there if (!isCacheInstanceValid()) return false; // Remove cache if ($GLOBALS['cache_instance']->loadCacheFile('admin')) $GLOBALS['cache_instance']->removeCacheFile(); // Return the data return $data; } // Destroy all cache files function FILTER_CACHE_DESTROY_ALL () { // Skip this step if the cache instance is not there //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!'); if (!isCacheInstanceValid()) return false; // Remove cache files 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 //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!'); } // Filter for purging 'filter' cache function FILTER_CACHE_DESTROY_FILTER () { // Skip this step if the cache instance is not there if ((!isCacheInstanceValid()) || (getConfig('update_filter_usage') != 'Y')) return false; // Remove cache files if ($GLOBALS['cache_instance']->loadCacheFile('filter')) $GLOBALS['cache_instance']->removeCacheFile(); } // [EOF] ?>