Use an hour as default cache time for status transform, to avoid stale cache objects

This commit is contained in:
leuc 2019-02-15 21:15:02 +01:00
parent a891bbcc9a
commit fd4eeb7621

View file

@ -17,7 +17,7 @@ class StatusTransformer extends Fractal\TransformerAbstract
public function transform(Status $status)
{
return Cache::remember('transform:status:'. $status->url(), 3, function() use($status) {
return Cache::remember('transform:status:'. $status->url(), 60, function() use($status) {
return [
'id' => (string) $status->id,
'uri' => $status->url(),