- /* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, sprintf("Trying to remove cache %s.", $cache));
- if ($GLOBALS['cache_instance']->loadCacheFile($cache)) $GLOBALS['cache_instance']->removeCacheFile();
+ // 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