Skip to content

Commit

Permalink
use cache store config
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk committed May 15, 2024
1 parent 902639f commit 5d78b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CachesValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public static function getCacheKey(?array $parameters = [], ?string $store = nul
$cacheKey = $store;
}

$cacheStore ??= config('permanent-cache.driver') ?: config('cache.default');
$cacheStore ??= config('permanent-cache.store') ?: config('cache.default');
$cacheKey ??= preg_replace('/[^A-Za-z0-9]+/', '_', strtolower(Str::snake($class)));

if ($parameters) {
Expand Down

0 comments on commit 5d78b40

Please sign in to comment.