Просмотр исходного кода

Update ProfileController, fix atom feed cache ttl. Fixes #5093

Daniel Supernault 1 год назад
Родитель
Сommit
921e29659f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Http/Controllers/ProfileController.php

+ 1 - 1
app/Http/Controllers/ProfileController.php

@@ -269,7 +269,7 @@ class ProfileController extends Controller
 
         abort_if($aiCheck, 404);
 
-        $enabled = Cache::remember('profile:atom:enabled:'.$profile['id'], 84600, function () use ($profile) {
+        $enabled = Cache::remember('profile:atom:enabled:'.$profile['id'], 86400, function () use ($profile) {
             $uid = User::whereProfileId($profile['id'])->first();
             if (! $uid) {
                 return false;