mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-01 09:02:38 +00:00
Fixed memcache support for durations greater than 30 days. Fixes #6085
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8022 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
b1b67c811c
commit
5026a6c89f
2 changed files with 15 additions and 2 deletions
4
cake/libs/cache/memcache.php
vendored
4
cake/libs/cache/memcache.php
vendored
|
@ -100,8 +100,8 @@ class MemcacheEngine extends CacheEngine {
|
|||
*/
|
||||
function write($key, &$value, $duration) {
|
||||
$expires = time() + $duration;
|
||||
$this->__Memcache->set($key.'_expires', $expires, $this->settings['compress'], $duration);
|
||||
return $this->__Memcache->set($key, $value, $this->settings['compress'], $duration);
|
||||
$this->__Memcache->set($key.'_expires', $expires, $this->settings['compress'], $expires);
|
||||
return $this->__Memcache->set($key, $value, $this->settings['compress'], $expires);
|
||||
}
|
||||
/**
|
||||
* Read a key from the cache
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue