[pLog-svn] r2927 - plog/trunk/class/cache/Cache_Lite
Mark Wu
markplace at gmail.com
Wed Feb 8 13:54:47 GMT 2006
Does any one use lifetype 1.1 trunk? Can you test the new cache_lite for
linux or not?
I test in DreamHost, it got asome errors ... :(
I just want to identify it is dreamhost's problem or the new cache_lite's
problem ....
Mark
> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of
> mark at devel.lifetype.net
> Sent: Tuesday, February 07, 2006 6:40 PM
> To: plog-svn at devel.lifetype.net
> Subject: [pLog-svn] r2927 - plog/trunk/class/cache/Cache_Lite
>
> 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 {
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn
More information about the pLog-svn
mailing list