From 7680e771a77b5cf435055079428594766c6976c4 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 24 May 2020 21:32:11 -0600 Subject: [PATCH] Update ProfileController, reduce actor object ttl from 6 hours to 15 minutes --- app/Http/Controllers/ProfileController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index 976898ff6..0754efbf6 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -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();