Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/cached-value-class' into…
Browse files Browse the repository at this point in the history
… feature/cached-value-class
  • Loading branch information
david-d-h committed Dec 12, 2023
2 parents f894ecf + 88d7885 commit 26ec90c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Cached.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,14 @@ final public function handle($event = null): void

/**
* Manually force a static cache to update.
*
* @return void
*/
final public static function update(): void
{
$instance = app()->make(static::class);

if (! is_a(static::class, ShouldQueue::class, true)) {
$instance->handle();

return;
}

Expand Down

0 comments on commit 26ec90c

Please sign in to comment.