From b9eb1dda72e58a23c6e4eec678720fe6f0a69b55 Mon Sep 17 00:00:00 2001 From: Damien HUTEAU Date: Wed, 25 Sep 2024 12:14:48 +0200 Subject: [PATCH] use existing getUrlsCacheKey method the getUrls where recreating manually the cache key wherease there already is a method to do that ... --- src/StaticCaching/Cachers/AbstractCacher.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/StaticCaching/Cachers/AbstractCacher.php b/src/StaticCaching/Cachers/AbstractCacher.php index eb125047d2..ddf4803bb2 100644 --- a/src/StaticCaching/Cachers/AbstractCacher.php +++ b/src/StaticCaching/Cachers/AbstractCacher.php @@ -139,10 +139,10 @@ public function cacheDomain($domain = null) public function getUrls($domain = null) { $domain = $domain ?: $this->getBaseUrl(); - - $domain = $this->makeHash($domain); - - return collect($this->cache->get($this->normalizeKey($domain.'.urls'), [])); + + $key = $this->getUrlsCacheKey($domain); + + return collect($this->cache->get($key, [])); } /**