Update ProfileController, reduce actor object ttl from 6 hours to 15 minutes

This commit is contained in:
Daniel Supernault 2020-05-24 21:32:11 -06:00
parent b2259860de
commit 7680e771a7
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ class ProfileController extends Controller
abort_if(!config('federation.activitypub.enabled'), 404);
abort_if($user->domain, 404);
$key = 'profile:ap:' . $user->id;
$ttl = now()->addHours(6);
$ttl = now()->addMinutes(15);
return Cache::remember($key, $ttl, function() use($user) {
$fractal = new Fractal\Manager();