Explorar o código

Update Image util

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
e2707ba174
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      app/Util/Media/Image.php

+ 2 - 1
app/Util/Media/Image.php

@@ -4,7 +4,7 @@ namespace App\Util\Media;
 
 use App\Media;
 use Image as Intervention;
-use Storage;
+use Cache, Storage;
 
 class Image
 {
@@ -141,6 +141,7 @@ class Image
             }
 
             $media->save();
+            Cache::forget('status:thumb:'.$media->status_id);
         } catch (Exception $e) {
         }
     }