From e2800b21fa5707e16d83f4b37ab03dbea0328019 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Tue, 8 Jul 2014 13:24:21 +0100 Subject: [PATCH] Issue #2231595 followup by yched | catch: Add a cache backend that checks an inconsistent cache, then falls back to a consistent cache backend. --- .../Drupal/Core/Cache/ChainedFastBackend.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/core/lib/Drupal/Core/Cache/ChainedFastBackend.php b/core/lib/Drupal/Core/Cache/ChainedFastBackend.php index 8f2d6bf1fb34..6a825af35a0b 100644 --- a/core/lib/Drupal/Core/Cache/ChainedFastBackend.php +++ b/core/lib/Drupal/Core/Cache/ChainedFastBackend.php @@ -98,15 +98,6 @@ public function get($cid, $allow_invalid = FALSE) { return reset($cache); } - /** - * {@inheritdoc} - */ - public function setMultiple(array $items) { - $this->markAsOutdated(); - $this->consistentBackend->setMultiple($items); - $this->fastBackend->setMultiple($items); - } - /** * {@inheritdoc} */ @@ -150,6 +141,15 @@ public function set($cid, $data, $expire = Cache::PERMANENT, array $tags = array $this->fastBackend->set($cid, $data, $expire, $tags); } + /** + * {@inheritdoc} + */ + public function setMultiple(array $items) { + $this->markAsOutdated(); + $this->consistentBackend->setMultiple($items); + $this->fastBackend->setMultiple($items); + } + /** * {@inheritdoc} */ -- GitLab