|
|
@ -1984,7 +1984,7 @@ class ApiV1Controller extends Controller
|
|
|
|
$remote = ($request->has('remote') && $request->input('remote') == true) || ($request->filled('local') && $request->input('local') != true);
|
|
|
|
$remote = ($request->has('remote') && $request->input('remote') == true) || ($request->filled('local') && $request->input('local') != true);
|
|
|
|
$filtered = $user ? UserFilterService::filters($user->profile_id) : [];
|
|
|
|
$filtered = $user ? UserFilterService::filters($user->profile_id) : [];
|
|
|
|
|
|
|
|
|
|
|
|
if($remote && config('instance.timeline.network.cached')) {
|
|
|
|
if((!$request->has('local') || $remote) && config('instance.timeline.network.cached')) {
|
|
|
|
Cache::remember('api:v1:timelines:network:cache_check', 10368000, function() {
|
|
|
|
Cache::remember('api:v1:timelines:network:cache_check', 10368000, function() {
|
|
|
|
if(NetworkTimelineService::count() == 0) {
|
|
|
|
if(NetworkTimelineService::count() == 0) {
|
|
|
|
NetworkTimelineService::warmCache(true, config('instance.timeline.network.cache_dropoff'));
|
|
|
|
NetworkTimelineService::warmCache(true, config('instance.timeline.network.cache_dropoff'));
|
|
|
|