forked from mirror/pixelfed
Use an hour as default cache time for status transform, to avoid stale cache objects
This commit is contained in:
parent
a891bbcc9a
commit
fd4eeb7621
1 changed files with 1 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue