Skip to content

Commit

Permalink
Update CachesValue.php
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk authored Apr 22, 2024
1 parent 308a4ab commit 7de1ab6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CachesValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ final public function handle($event = null): mixed
return null;
}

$this->isUpdating = false;
Cache::driver($driver)->forever($cacheKey, $value);

PermanentCacheUpdated::dispatch($this);

Cache::driver($driver)->forever($cacheKey, $value);
$this->isUpdating = false;

return $value;
}
Expand Down

0 comments on commit 7de1ab6

Please sign in to comment.