diff --git a/app/code/core/Mage/Core/Model/Cache.php b/app/code/core/Mage/Core/Model/Cache.php index bc34eb5072f..87cd6476d82 100644 --- a/app/code/core/Mage/Core/Model/Cache.php +++ b/app/code/core/Mage/Core/Model/Cache.php @@ -419,11 +419,10 @@ public function clean($tags = []) if (!is_array($tags)) { $tags = [$tags]; } - $res = $this->getFrontend()->clean($mode, $this->_tags($tags)); - } else { - $this->flush(); + return $this->getFrontend()->clean($mode, $this->_tags($tags)); } - return $res; + + return $this->flush(); } /**