Update MediaStorageService, clear MediaService and StatusService caches after localToCloud

This commit is contained in:
Daniel Supernault 2022-12-17 23:18:07 -07:00
parent 08d64ede16
commit de56b0f078
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -106,6 +106,8 @@ class MediaStorageService {
$media->save();
if($media->status_id) {
Cache::forget('status:transformer:media:attachments:' . $media->status_id);
MediaService::del($media->status_id);
StatusService::del($media->status_id, false);
}
}