From 8b7917e76a84308fe964bed15c43e23e56ebf205 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 6 Jan 2020 23:24:47 -0700 Subject: [PATCH] Update StatusTransformer --- app/Transformer/Api/StatusTransformer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Transformer/Api/StatusTransformer.php b/app/Transformer/Api/StatusTransformer.php index 5a8fb0ba..80074e7b 100644 --- a/app/Transformer/Api/StatusTransformer.php +++ b/app/Transformer/Api/StatusTransformer.php @@ -62,7 +62,7 @@ class StatusTransformer extends Fractal\TransformerAbstract public function includeMediaAttachments(Status $status) { - return Cache::remember('status:transformer:media:attachments:'.$status->id, now()->addDays(14), function() use($status) { + return Cache::remember('status:transformer:media:attachments:'.$status->id, now()->addMinutes(14), function() use($status) { if(in_array($status->type, ['photo', 'video', 'video:album', 'photo:album', 'loop', 'photo:video:album'])) { $media = $status->media()->orderBy('order')->get(); return $this->collection($media, new MediaTransformer());