[pLog-svn] r6117 - plog/branches/lifetype-1.2/class/cache/Cache_Lite
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Mon Dec 17 14:04:49 EST 2007
Author: jondaley
Date: 2007-12-17 14:04:49 -0500 (Mon, 17 Dec 2007)
New Revision: 6117
Modified:
plog/branches/lifetype-1.2/class/cache/Cache_Lite/Lite.php
Log:
We added this check ourselves, and I don't think the file_exists check is needed. It was hiding a bug in how we used the cache
Modified: plog/branches/lifetype-1.2/class/cache/Cache_Lite/Lite.php
===================================================================
--- plog/branches/lifetype-1.2/class/cache/Cache_Lite/Lite.php 2007-12-15 19:11:53 UTC (rev 6116)
+++ plog/branches/lifetype-1.2/class/cache/Cache_Lite/Lite.php 2007-12-17 19:04:49 UTC (rev 6117)
@@ -577,8 +577,8 @@
*/
function _unlink($file)
{
- if (file_exists($file) && !@unlink($file)) {
- return $this->raiseError('Cache_Lite : Unable to remove cache !', -3);
+ if (!@unlink($file)) {
+ return $this->raiseError("Cache_Lite : Unable to remove cache: $file !", -3);
}
return true;
}
More information about the pLog-svn
mailing list