mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +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)
|
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 [
|
return [
|
||||||
'id' => (string) $status->id,
|
'id' => (string) $status->id,
|
||||||
'uri' => $status->url(),
|
'uri' => $status->url(),
|
||||||
|
|
Loading…
Reference in a new issue