Commit e1e97313 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 160bae1a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment