[pLog-svn] r2927 - plog/trunk/class/cache/Cache_Lite

mark at devel.lifetype.net mark at devel.lifetype.net
Tue Feb 7 10:40:00 GMT 2006


Author: mark
Date: 2006-02-07 10:40:00 +0000 (Tue, 07 Feb 2006)
New Revision: 2927

Modified:
   plog/trunk/class/cache/Cache_Lite/Lite.php
Log:
It seems a bug of the new cache_lite, I just add file_exists($file) to check the file exist before remove it.

The logger still not working...

Modified: plog/trunk/class/cache/Cache_Lite/Lite.php
===================================================================
--- plog/trunk/class/cache/Cache_Lite/Lite.php	2006-02-07 10:30:32 UTC (rev 2926)
+++ plog/trunk/class/cache/Cache_Lite/Lite.php	2006-02-07 10:40:00 UTC (rev 2927)
@@ -522,7 +522,7 @@
     */
     function _unlink($file)
     {
-        if (!@unlink($file)) {
+        if (file_exists($file) && !@unlink($file)) {
             $this->log->log('Unable to remove cache !', LOGGER_PRIO_ERROR );
             return false;
         } else {



More information about the pLog-svn mailing list