Traffic often

This commit is contained in:
Kekskurse 2021-01-17 02:43:28 +01:00
parent 2caec9683e
commit cdd6d483cd
2 changed files with 2 additions and 8 deletions

View file

@ -28,7 +28,8 @@ class Kernel extends ConsoleKernel
protected function schedule(Schedule $schedule) protected function schedule(Schedule $schedule)
{ {
$schedule->command('calculate:space')->hourlyAt(10)->withoutOverlapping(); $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();
} }
/** /**

View file

@ -39,13 +39,6 @@ class PublicController extends BaseController
return view("themes.gallery.gallery.list", ["gallery" => $gallery, "tenant" => $tenant, "images" => $images]); 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) { public function returnImageFile($tenant, $gallery, $image, Request $request) {
$uid = uniqid(); $uid = uniqid();
Log::info($uid.": Start", [$image]); Log::info($uid.": Start", [$image]);