Skip to content

Commit 7533fbe

Browse files
only saved is needed - the other methods fire saved event
1 parent 1d5fa82 commit 7533fbe

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/CachedModel.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,9 @@ public static function boot()
3030
{
3131
parent::boot();
3232

33-
static::created(function ($instance) {
34-
$instance->flushCache();
35-
});
36-
37-
static::deleted(function ($instance) {
38-
$instance->flushCache();
39-
});
40-
4133
static::saved(function ($instance) {
4234
$instance->flushCache();
4335
});
44-
45-
static::updated(function ($instance) {
46-
$instance->flushCache();
47-
});
4836
}
4937

5038
public static function all($columns = ['*'])

0 commit comments

Comments
 (0)