From 04f362aa330d182e909953bcb0b6339fb49b7f55 Mon Sep 17 00:00:00 2001 From: Mark van Eijk Date: Wed, 15 May 2024 20:59:22 +0200 Subject: [PATCH] update or does not have cache --- src/CachesValue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CachesValue.php b/src/CachesValue.php index 7e748ee..80e9659 100644 --- a/src/CachesValue.php +++ b/src/CachesValue.php @@ -160,7 +160,7 @@ final public static function get($parameters = [], $default = null, bool $update $cache = Cache::store($store); if ( - $update && + $update || ! $cache->has($cacheKey) ) { return static::updateAndGet($parameters ?? []);