diff --git a/src/CachedBuilder.php b/src/CachedBuilder.php index 0a9efbe..9b397a7 100644 --- a/src/CachedBuilder.php +++ b/src/CachedBuilder.php @@ -61,7 +61,8 @@ public function find($id, $columns = ["*"]) } $idKey = collect($id)->implode('-'); - $cacheKey = $this->makeCacheKey($columns, null, "-find_{$idKey}"); + $preStr = is_array($id) ? 'find-list' : 'find'; + $cacheKey = $this->makeCacheKey($columns, null, "-" . $preStr . "_{$idKey}"); return $this->cachedValue(func_get_args(), $cacheKey); }