From de56b0f0789c49f52975ee9407fd756f4ce2dc36 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 17 Dec 2022 23:18:07 -0700 Subject: [PATCH] Update MediaStorageService, clear MediaService and StatusService caches after localToCloud --- app/Services/MediaStorageService.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Services/MediaStorageService.php b/app/Services/MediaStorageService.php index 055afe645..f7be84fff 100644 --- a/app/Services/MediaStorageService.php +++ b/app/Services/MediaStorageService.php @@ -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); } }