Skip to content

Commit

Permalink
use existing getUrlsCacheKey method
Browse files Browse the repository at this point in the history
the getUrls where recreating manually the cache key wherease there already is a method to do that ...
  • Loading branch information
dadaxr committed Sep 25, 2024
1 parent a375508 commit b9eb1dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/StaticCaching/Cachers/AbstractCacher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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, []));
}

/**
Expand Down

0 comments on commit b9eb1dd

Please sign in to comment.