Unverified Commit 2047ded9 authored by alexpott's avatar alexpott

Issue #3017753 by mxr576, alexpott: MemoryBackend should validate the passed cids

(cherry picked from commit 76bb5111)
parent e24cd9aa
...@@ -156,7 +156,8 @@ public function invalidate($cid) { ...@@ -156,7 +156,8 @@ public function invalidate($cid) {
* {@inheritdoc} * {@inheritdoc}
*/ */
public function invalidateMultiple(array $cids) { public function invalidateMultiple(array $cids) {
foreach ($cids as $cid) { $items = array_intersect_key($this->cache, array_flip($cids));
foreach ($items as $cid => $item) {
$this->cache[$cid]->expire = $this->getRequestTime() - 1; $this->cache[$cid]->expire = $this->getRequestTime() - 1;
} }
} }
......
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