diff --git a/core/lib/Drupal/Core/Cache/ApcuBackend.php b/core/lib/Drupal/Core/Cache/ApcuBackend.php index 40ede29..d64ab7f 100644 --- a/core/lib/Drupal/Core/Cache/ApcuBackend.php +++ b/core/lib/Drupal/Core/Cache/ApcuBackend.php @@ -275,8 +275,7 @@ public function invalidate($cid) { */ public function invalidateMultiple(array $cids) { foreach ($this->getMultiple($cids) as $cache) { - $cache->expire = REQUEST_TIME - 1; - $this->set($cache->cid, $cache); + $this->set($cache->cid, $cache, REQUEST_TIME - 1); } } @@ -285,8 +284,8 @@ public function invalidateMultiple(array $cids) { */ public function invalidateAll() { foreach ($this->getAll() as $data) { - $data['value']->expire = REQUEST_TIME - 1; - $this->set($data['key'], $data['value']); + $cid = str_replace($this->binPrefix, '', $data['key']); + $this->set($cid, $data['value'], REQUEST_TIME - 1); } }