1
0
Fork 0
forked from mirror/pixelfed

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

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();