- foreach (array('admin','admin_acls','config','extensions','modules','refdepths','refsystem','themes','revision','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();
+ foreach (array('admin','admin_acls','config','extension','modules','refdepths','refsystem','themes','filter','imprint') as $cache) {
+ // Is the cache file readable?
+ // @TODO This should be rewritten not to load the cache file for just checking if it is there for save removal.
+ if ($GLOBALS['cache_instance']->loadCacheFile($cache)) {
+ // Remove the cache file
+ $GLOBALS['cache_instance']->removeCacheFile();
+ } // END - if