Removed comment introduced by Profi-Concept, this comment should fine (in a much...
[mailer.git] / inc / libs / cache_functions.php
index 902f21dce8e1966ca74beb4fa3e6470c303bb1d1..3e7698878f0bde1c51a7318090d91ec4218f260d 100644 (file)
@@ -14,8 +14,6 @@
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
@@ -76,8 +74,12 @@ function FILTER_CACHE_DESTROY_ALL () {
 
        // 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();
+               // 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
        } // END - foreach
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
 }