Issue #3017753 by mxr576, alexpott: MemoryBackend should validate the passed cids
parent
280995f92b
commit
76bb511174
|
@ -156,7 +156,8 @@ class MemoryBackend implements CacheBackendInterface, CacheTagsInvalidatorInterf
|
|||
* {@inheritdoc}
|
||||
*/
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue