mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-24 16:53:17 +00:00
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