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

8.7.x
Alex Pott 2018-12-06 11:34:43 +01:00
parent 280995f92b
commit 76bb511174
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}
}