Skip to content

Commit 3f518af

Browse files
authored
Remove asset clearCaches function (#492)
* Clear asset cache store * We don't need this any more as is the same as base Asset * 🍺
1 parent 3ec74ee commit 3f518af

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/Assets/Asset.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Statamic\Eloquent\Assets;
44

55
use Illuminate\Database\Eloquent\Model;
6-
use Illuminate\Support\Facades\Cache;
76
use Statamic\Assets\Asset as FileAsset;
87
use Statamic\Contracts\Assets\Asset as AssetContract;
98
use Statamic\Data\HasDirtyState;
@@ -207,11 +206,4 @@ public function getCurrentDirtyStateAttributes(): array
207206
'data' => $this->data()->toArray(),
208207
]);
209208
}
210-
211-
protected function clearCaches()
212-
{
213-
$this->meta = null;
214-
215-
Cache::forget($this->metaCacheKey());
216-
}
217209
}

0 commit comments

Comments
 (0)