Update StatusService, reduce cache ttl from 7 days to 6 hours

This commit is contained in:
Daniel Supernault 2023-07-22 03:50:23 -06:00
parent ecc697a241
commit 59b643789f
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 147 additions and 147 deletions

View File

@ -24,7 +24,7 @@ class StatusService
public static function get($id, $publicOnly = true)
{
return Cache::remember(self::key($id, $publicOnly), now()->addDays(7), function() use($id, $publicOnly) {
return Cache::remember(self::key($id, $publicOnly), 21600, function() use($id, $publicOnly) {
if($publicOnly) {
$status = Status::whereScope('public')->find($id);
} else {