Skip to content

Commit fcb3645

Browse files
committed
memcache set() expire parameters should be consistent
1 parent 37c1109 commit fcb3645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cache/sfMemcacheCache.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ protected function getMetadata($key)
238238
*/
239239
protected function setMetadata($key, $lifetime)
240240
{
241-
$this->memcache->set($this->getOption('prefix').'_metadata'.self::SEPARATOR.$key, array('lastModified' => time(), 'timeout' => time() + $lifetime), false, $lifetime);
241+
$this->memcache->set($this->getOption('prefix').'_metadata'.self::SEPARATOR.$key, array('lastModified' => time(), 'timeout' => time() + $lifetime), false, time() + $lifetime);
242242
}
243243

244244
/**

0 commit comments

Comments
 (0)