Author: chabotc
Date: Sat Aug 23 06:12:25 2008
New Revision: 688309
URL: http://svn.apache.org/viewvc?rev=688309&view=rev
Log:
SHINDIG-534 by Janek Hiis : CacheFile is always using cache_time to cache data
Modified:
incubator/shindig/trunk/php/src/common/CacheFile.php
Modified: incubator/shindig/trunk/php/src/common/CacheFile.php
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/src/common/CacheFile.php?rev=688309&r1=688308&r2=688309&view=diff
==============================================================================
--- incubator/shindig/trunk/php/src/common/CacheFile.php (original)
+++ incubator/shindig/trunk/php/src/common/CacheFile.php Sat Aug 23 06:12:25
2008
@@ -102,7 +102,7 @@
}
if (file_exists($cacheFile) && is_readable($cacheFile)) {
$now = time();
- if (($mtime = filemtime($cacheFile)) !== false && ($now
- $mtime) < Config::get('cache_time')) {
+ if (($mtime = filemtime($cacheFile)) !== false && ($now
- $mtime) < $expiration) {
if (($data = @file_get_contents($cacheFile))
!== false) {
$data = unserialize($data);
return $data;