Commit f173ea71 authored by catch's avatar catch

Issue #1150072 by Jeremy, JeffSheltren: Review expires handling.

parent 145c0c7b
......@@ -144,7 +144,12 @@ class MemCacheDrupal implements DrupalCacheInterface {
// as long into the future, this allows old items to be expired by memcache
// rather than evicted along with a sufficient period for stampede
// protection to continue to work.
$memcache_expire = $cache->expire + (($cache->expire - REQUEST_TIME) * 2);
if ($cache->expire == CACHE_PERMANENT) {
$memcache_expire = $cache->expire;
}
else {
$memcache_expire = $cache->expire + (($cache->expire - REQUEST_TIME) * 2);
}
dmemcache_set($cid, $cache, $memcache_expire, $this->bin, $this->memcache);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment