diff --git a/lib/internal/Magento/Framework/App/PageCache/Identifier.php b/lib/internal/Magento/Framework/App/PageCache/Identifier.php index b10681654683..6c602b3f92c2 100644 --- a/lib/internal/Magento/Framework/App/PageCache/Identifier.php +++ b/lib/internal/Magento/Framework/App/PageCache/Identifier.php @@ -51,8 +51,7 @@ public function __construct( public function getValue() { $pattern = $this->getMarketingParameterPatterns(); - $replace = array_fill(0, count($pattern), ''); - $url = preg_replace($pattern, $replace, (string)$this->request->getUriString()); + $url = preg_replace($pattern, "", (string)$this->request->getUriString()); list($baseUrl, $query) = $this->reconstructUrl($url); $data = [ $this->request->isSecure(),