Skip to content

Commit

Permalink
Merge branch 'main' of github.com:omnia-digital/library
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtorres committed Nov 21, 2023
2 parents 3afad46 + 23e80be commit ca72720
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Livewire/WithCachedRows.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,16 @@ public function cache($callback)
$cache = cache();

if ($this->useCache && $cache->has($cacheKey)) {
if (!empty($this->tags)) {
if (! empty($this->tags)) {
$cache = $cache->tags($this->tags);
}

return $cache->get($cacheKey);
}

$result = $callback();

if (!empty($this->tags)) {
if (! empty($this->tags)) {
$cache = $cache->tags($this->tags);
}

Expand Down

0 comments on commit ca72720

Please sign in to comment.