Skip to content

Commit 57b76d0

Browse files
committed
Reverted ternary in case no tags are assigned.
1 parent dab152a commit 57b76d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/QueryCacheModule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ public function getCache()
342342
$this->getCacheBaseTags() ?: []
343343
);
344344

345-
return $cache->tags($tags);
345+
return $tags ? $cache->tags($tags) : $cache;
346346
}
347347

348348
/**

0 commit comments

Comments
 (0)