This commit is contained in:
parent
160bae1aa3
commit
e1e97313a2
@ -111,15 +111,13 @@ class Doctrine_Cache_Memcache extends Doctrine_Cache_Driver
|
||||
*/
|
||||
public function save($id, $data, $lifeTime = false)
|
||||
{
|
||||
$lifeTime = $this->getLifeTime($specificLifeTime);
|
||||
|
||||
if ($this->_options['compression']) {
|
||||
$flag = MEMCACHE_COMPRESSED;
|
||||
} else {
|
||||
$flag = 0;
|
||||
}
|
||||
|
||||
$result = $this->_memcache->set($id, array($data, time()), $flag, $lifeTime);
|
||||
$result = $this->_memcache->set($id, $data, $flag, $lifeTime);
|
||||
}
|
||||
/**
|
||||
* Remove a cache record
|
||||
|
Loading…
Reference in New Issue
Block a user