Traffic often
This commit is contained in:
parent
2caec9683e
commit
cdd6d483cd
2 changed files with 2 additions and 8 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue