From f6f2c27874e956d42743b3af1757dc644a3df248 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 5 Apr 2022 21:22:32 -0600 Subject: [PATCH] Update horizon config, add default timeout limit --- app/Http/Controllers/ProfileController.php | 4 +-- config/horizon.php | 2 ++ resources/views/profile/memory.blade.php | 35 ---------------------- 3 files changed, 3 insertions(+), 38 deletions(-) delete mode 100644 resources/views/profile/memory.blade.php diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index 7dbda1191..147d95842 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -81,9 +81,7 @@ class ProfileController extends Controller 'list' => $settings->show_profile_followers ] ]; - $ui = $request->has('ui') && $request->input('ui') == 'memory' ? 'profile.memory' : 'profile.show'; - - return view($ui, compact('profile', 'settings')); + return view('profile.show', compact('profile', 'settings')); } else { $key = 'profile:settings:' . $user->id; $ttl = now()->addHours(6); diff --git a/config/horizon.php b/config/horizon.php index c089fd901..f7fd81c29 100644 --- a/config/horizon.php +++ b/config/horizon.php @@ -175,6 +175,7 @@ return [ 'memory' => 128, 'tries' => 3, 'nice' => 0, + 'timeout' => 60 ], ], @@ -187,6 +188,7 @@ return [ 'memory' => 128, 'tries' => 3, 'nice' => 0, + 'timeout' => 60 ], ], ], diff --git a/resources/views/profile/memory.blade.php b/resources/views/profile/memory.blade.php deleted file mode 100644 index 7e23972fd..000000000 --- a/resources/views/profile/memory.blade.php +++ /dev/null @@ -1,35 +0,0 @@ -@extends('layouts.app',['title' => $profile->username . " on " . config('app.name')]) - -@section('content') -@if (session('error')) -
- {{ session('error') }} -
-@endif - - -@if($profile->website) -{{$profile->website}} -@endif - - - -@endsection - -@push('meta') - @if(false == $settings['crawlable'] || $profile->remote_url) - - @else - - - @endif -@endpush - -@push('scripts') - - -@endpush