diff --git a/vendor/magento/framework/Cache/Backend/RemoteSynchronizedCache.php b/vendor/magento/framework/Cache/Backend/RemoteSynchronizedCache.php index 04efd1c60c4c..85218242057e 100644 --- a/vendor/magento/framework/Cache/Backend/RemoteSynchronizedCache.php +++ b/vendor/magento/framework/Cache/Backend/RemoteSynchronizedCache.php @@ -223,7 +223,9 @@ public function load($id, $doNotTestCacheValidity = false) */ public function test($id) { - return $this->local->test($id) ?? $this->remote->test($id); + return $this->_options['use_stale_cache'] ? + ($this->local->test($id) ?? $this->remote->test($id)) + : $this->remote->test($id); } /**