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

Update PublicApiController, fix HomeTimeline cache ttl

Daniel Supernault 5 лет назад
Родитель
Сommit
0d350ea03e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Http/Controllers/PublicApiController.php

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

@@ -347,7 +347,7 @@ class PublicApiController extends Controller
             return $following->push($pid)->toArray();
             return $following->push($pid)->toArray();
         });
         });
 
 
-        $private = Cache::remember('profiles:private', 1440, function() {
+        $private = Cache::remember('profiles:private', now()->addMinutes(1440), function() {
             return Profile::whereIsPrivate(true)
             return Profile::whereIsPrivate(true)
                 ->orWhere('unlisted', true)
                 ->orWhere('unlisted', true)
                 ->orWhere('status', '!=', null)
                 ->orWhere('status', '!=', null)