Skip to content

Commit

Permalink
[mms] Fix key expiration for APC, Eaccelerator, and Xcache (Bug #12735).
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Oct 7, 2013
1 parent 31147d9 commit 923c200
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion framework/Cache/lib/Horde/Cache/Storage/Apc.php
Expand Up @@ -95,7 +95,6 @@ public function clear()
*/
protected function _setExpire($key, $lifetime)
{
$key = $this->_params['prefix'] . $key;
if ($lifetime == 0) {
// Don't expire.
return;
Expand Down
1 change: 0 additions & 1 deletion framework/Cache/lib/Horde/Cache/Storage/Eaccelerator.php
Expand Up @@ -100,7 +100,6 @@ protected function _setExpire($key, $lifetime)
return;
}

$key = $this->_params['prefix'] . $key;
$expire = eaccelerator_get($key . '_expire');

// Set prune period.
Expand Down
3 changes: 1 addition & 2 deletions framework/Cache/lib/Horde/Cache/Storage/Xcache.php
Expand Up @@ -86,7 +86,7 @@ public function clear()
}

/**
* Set expire time on each call since memcache sets it on cache creation.
* Set expire time on each call since xcache sets it on cache creation.
*
* @param string $key Cache key to expire.
* @param integer $lifetime Lifetime of the data in seconds.
Expand All @@ -97,7 +97,6 @@ protected function _setExpire($key, $lifetime)
// don't expire
return;
}
$key = $this->_params['prefix'] . $key;
$expire = xcache_get($key . '_expire');

// set prune period
Expand Down
2 changes: 2 additions & 0 deletions framework/Cache/package.xml
Expand Up @@ -27,6 +27,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [mms] Fix key expiration for APC, Eaccelerator, and Xcache (Bug #12735).
* [mms] Add Horde_Cache_Storage_Memoryoverlay driver.
</notes>
<contents>
Expand Down Expand Up @@ -518,6 +519,7 @@ Initial packaging.
<date>2013-09-17</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [mms] Fix key expiration for APC, Eaccelerator, and Xcache (Bug #12735).
* [mms] Add Horde_Cache_Storage_Memoryoverlay driver.
</notes>
</release>
Expand Down

0 comments on commit 923c200

Please sign in to comment.