From b46640564d8469ef23c0716e9b270c88e3b932b6 Mon Sep 17 00:00:00 2001 From: ah-net <103565001+ah-net@users.noreply.github.com> Date: Thu, 27 Feb 2025 12:24:41 +0100 Subject: [PATCH] fix: change varnish setting --- Helper/Cache.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Helper/Cache.php b/Helper/Cache.php index ec98b2d5..e900132f 100644 --- a/Helper/Cache.php +++ b/Helper/Cache.php @@ -83,9 +83,9 @@ public function isTweakwiseAjaxRequest(): bool /** * @return bool */ - public function isVarnishEnabled(): bool + public function isCachingEngineEnabled(): bool { - return $this->scopeConfig->getValue(Config::XML_PAGECACHE_TYPE) === (string) Config::VARNISH; + return $this->scopeConfig->getValue(Config::XML_PAGECACHE_TYPE) !== (string) Config::BUILT_IN; } /** @@ -93,7 +93,7 @@ public function isVarnishEnabled(): bool */ public function personalMerchandisingCanBeApplied(): bool { - return $this->isVarnishEnabled() && $this->config->isPersonalMerchandisingActive(); + return $this->isCachingEngineEnabled() && $this->config->isPersonalMerchandisingActive(); } /**