fix arrays

This commit is contained in:
2023-07-30 07:14:22 +10:00
parent 280d3e9043
commit 229bb9a5e0
3 changed files with 5 additions and 12 deletions

View File

@@ -110,10 +110,7 @@ class Media extends Model
parent::boot();
$clearCache = function ($media) {
$cacheKeys = [
"media:{$media->id}",
];
Cache::forget($cacheKeys);
Cache::forget("media:{$media->id}");
};
static::updating(function ($media) use ($clearCache) {