From cdd6d483cd08812e4ada2c8a36a38325a2900265 Mon Sep 17 00:00:00 2001 From: Kekskurse Date: Sun, 17 Jan 2021 02:43:28 +0100 Subject: [PATCH] Traffic often --- app/Console/Kernel.php | 3 ++- app/Http/Controllers/PublicController.php | 7 ------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 94d34be..5a7fea5 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -28,7 +28,8 @@ class Kernel extends ConsoleKernel protected function schedule(Schedule $schedule) { $schedule->command('calculate:space')->hourlyAt(10)->withoutOverlapping(); - $schedule->command('calculate:traffic')->hourlyAt(10)->withoutOverlapping(); + //$schedule->command('calculate:traffic')->hourlyAt(10)->withoutOverlapping(); + $schedule->command('calculate:traffic')->everyFiveMinutes(); } /** diff --git a/app/Http/Controllers/PublicController.php b/app/Http/Controllers/PublicController.php index 90cb57b..75e35b6 100644 --- a/app/Http/Controllers/PublicController.php +++ b/app/Http/Controllers/PublicController.php @@ -39,13 +39,6 @@ class PublicController extends BaseController return view("themes.gallery.gallery.list", ["gallery" => $gallery, "tenant" => $tenant, "images" => $images]); } - public function returnImageFile2($tenant, $gallery, $image, Request $request) { - $image = Image::query()->where("id", "=", $image)->firstOrFail(); - $size = $request->input("size", "medium"); - $file = Storage::disk($image->driver)->response($image->path); - return $file; - } - public function returnImageFile($tenant, $gallery, $image, Request $request) { $uid = uniqid(); Log::info($uid.": Start", [$image]);