Skip to content

Commit

Permalink
fix: caching
Browse files Browse the repository at this point in the history
  • Loading branch information
efureev committed Jan 21, 2022
1 parent 550c728 commit 2b50752
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Traits/Models/HasModelEntityCache.php
Expand Up @@ -20,9 +20,7 @@ public static function bootHasModelEntityCache(): void

protected static function registerEventsForCache(): void
{
static::created(static fn(Model $model) => static::cacheForgetCollection());
static::saved($fn = static::cacheForgetFn());
static::updated($fn);
static::deleted($fn);
}

Expand Down

0 comments on commit 2b50752

Please sign in to comment.