소스 검색

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

Daniel Supernault 5 년 전
부모
커밋
7680e771a7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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();