Update StatusTransformer

This commit is contained in:
Daniel Supernault 2019-03-05 12:42:32 -07:00
parent c7e4e14b7e
commit ed70d57dc5
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -62,7 +62,7 @@ class StatusTransformer extends Fractal\TransformerAbstract
public function includeMediaAttachments(Status $status)
{
return Cache::remember('status:transformer:media:attachments:'.$status->id, now()->addMinutes(1440), function() use($status) {
return Cache::remember('status:transformer:media:attachments:'.$status->id, now()->addMinutes(30), function() use($status) {
$media = $status->media()->orderBy('order')->get();
return $this->collection($media, new MediaTransformer());
});