From d24be0b69b0f6bf8c0da4e877f3ff52c13700650 Mon Sep 17 00:00:00 2001 From: guilhermeblanco Date: Fri, 19 Mar 2010 16:01:55 +0000 Subject: [PATCH] [2.0] Fixed issue with Memcache driver that was failing to store cache entries indefinately --- lib/Doctrine/Common/Cache/MemcacheCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /**