Commit 4aed34eb authored by marco's avatar marco Committed by Jeremy

Issue #3055155 by marco: MemCacheDrupal::getMultiple() issue with stampede protection

parent 6bbe0e14
...@@ -73,7 +73,7 @@ class MemCacheDrupal implements DrupalCacheInterface { ...@@ -73,7 +73,7 @@ class MemCacheDrupal implements DrupalCacheInterface {
// Clean up. // Clean up.
$this->garbageCollection(); $this->garbageCollection();
$results = dmemcache_get_multi($cids, $this->bin, $this->memcache); $results = dmemcache_get_multi($cids, $this->bin, $this->memcache);
foreach ($results as $cid => $result) { foreach ($results as $cid => &$result) {
if (!$this->valid($cid, $result)) { if (!$this->valid($cid, $result)) {
// This object has expired, so don't return it. // This object has expired, so don't return it.
unset($results[$cid]); unset($results[$cid]);
......
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