cvs: pear /Cache/Container file.php
| From: | Christian Stocker | Date: | Sat, 23 Feb 2002 17:52:36 +0000 |
| Subject: | cvs: pear /Cache/Container file.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2573@lists.php.net to get a copy of this message | ||
chregu Sat Feb 23 12:52:36 2002 EDT
Modified files:
/pear/Cache/Container file.php
Log:
touch() produced strange results without second parameter..
Index: pear/Cache/Container/file.php
diff -u pear/Cache/Container/file.php:1.1 pear/Cache/Container/file.php:1.2
--- pear/Cache/Container/file.php:1.1 Sun Jan 20 11:06:23 2002
+++ pear/Cache/Container/file.php Sat Feb 23 12:52:36 2002
@@ -16,7 +16,7 @@
// | Sebastian Bergmann <sb@sebastian-bergmann.de> |
// +----------------------------------------------------------------------+
//
-// $Id: file.php,v 1.1 2002/01/20 16:06:23 sebastian Exp $
+// $Id: file.php,v 1.2 2002/02/23 17:52:36 chregu Exp $
require_once('Cache/Container.php');
@@ -24,7 +24,7 @@
* Stores cache contents in a file.
*
* @author Ulf Wendel <ulf.wendel@phpdoc.de>
-* @version $Id: file.php,v 1.1 2002/01/20 16:06:23 sebastian Exp $
+* @version $Id: file.php,v 1.2 2002/02/23 17:52:36 chregu Exp $
*/
class Cache_Container_file extends Cache_Container {
@@ -116,7 +116,8 @@
fclose($fh);
// last usage date used by the gc - maxlifetime
- touch($file);
+ // touch without second param produced stupid entries...
+ touch($file,time());
clearstatcache();
return array($expire, $cachedata, $userdata);
@@ -147,7 +148,8 @@
fclose($fh);
// I'm not sure if we need this
- touch($file);
+ // i don't think we need this (chregu)
+ // touch($file);
return true;
} // end func save