Pārlūkot izejas kodu

Update PublicApiController, fix HomeTimeline cache ttl

Daniel Supernault 5 gadi atpakaļ
vecāks
revīzija
0d350ea03e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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();
         });
 
-        $private = Cache::remember('profiles:private', 1440, function() {
+        $private = Cache::remember('profiles:private', now()->addMinutes(1440), function() {
             return Profile::whereIsPrivate(true)
                 ->orWhere('unlisted', true)
                 ->orWhere('status', '!=', null)