Răsfoiți Sursa

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

Daniel Supernault 5 ani în urmă
părinte
comite
7680e771a7
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      app/Http/Controllers/ProfileController.php

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