diff --git a/lib/Doctrine/Common/Cache/MemcacheCache.php b/lib/Doctrine/Common/Cache/MemcacheCache.php index c185ed074..45a9c0eec 100644 --- a/lib/Doctrine/Common/Cache/MemcacheCache.php +++ b/lib/Doctrine/Common/Cache/MemcacheCache.php @@ -109,7 +109,7 @@ class MemcacheCache extends AbstractCache */ protected function _doSave($id, $data, $lifeTime = false) { - return $this->_memcache->set($id, $data, 0, $lifeTime); + return $this->_memcache->set($id, $data, 0, $lifeTime ?: 0); } /**