From 08656796844eab3de9ebd922b50796156afc9ef4 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sun, 15 Aug 2010 22:32:52 -0400 Subject: [PATCH] Removing _expires keys made with Memcache cache engine. These did not add any value as Memcache already handles expiration of keys. Fixes #871 --- cake/libs/cache/memcache.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cake/libs/cache/memcache.php b/cake/libs/cache/memcache.php index 4209d891c95..93f99b08aa3 100644 --- a/cake/libs/cache/memcache.php +++ b/cake/libs/cache/memcache.php @@ -105,7 +105,6 @@ function init($settings = array()) { */ function write($key, &$value, $duration) { $expires = time() + $duration; - $this->__Memcache->set($key . '_expires', $expires, $this->settings['compress'], $expires); return $this->__Memcache->set($key, $value, $this->settings['compress'], $expires); } @@ -117,11 +116,6 @@ function write($key, &$value, $duration) { * @access public */ function read($key) { - $time = time(); - $cachetime = intval($this->__Memcache->get($key . '_expires')); - if ($cachetime < $time || ($time + $this->settings['duration']) < $cachetime) { - return false; - } return $this->__Memcache->get($key); }