Crons
This commit is contained in:
parent
c4fc583369
commit
599d107991
1 changed files with 3 additions and 6 deletions
|
@ -79,8 +79,7 @@ class PublicController extends BaseController
|
|||
$image->resizeToLongSide(self::SIZE_SMALL);
|
||||
Storage::disk("cache")->put($cacheName."_small", $image->getImageAsString());
|
||||
$ende = microtime(true);
|
||||
Log::info("Dauer umwandlung: ".($ende-$start));
|
||||
Log::info("Gesamtzeit: ".(microtime(true)-$globalstart));
|
||||
Log::info("Dauer umwandlung small: ".($ende-$start). "/" . "Gesamtzeit: ".(microtime(true)-$globalstart));
|
||||
return Storage::disk('cache')->response($cacheName."_small");
|
||||
}
|
||||
if($size == "medium") {
|
||||
|
@ -89,8 +88,7 @@ class PublicController extends BaseController
|
|||
$image->resizeToLongSide(self::SIZE_MEDIUM);
|
||||
Storage::disk("cache")->put($cacheName."_medium", $image->getImageAsString());
|
||||
$ende = microtime(true);
|
||||
Log::info("Dauer umwandlung: ".($ende-$start));
|
||||
Log::info("Gesamtzeit: ".(microtime(true)-$globalstart));
|
||||
Log::info("Dauer umwandlung medium: ".($ende-$start). "/" . "Gesamtzeit: ".(microtime(true)-$globalstart));
|
||||
return Storage::disk('cache')->response($cacheName."_medium");
|
||||
}
|
||||
|
||||
|
@ -100,8 +98,7 @@ class PublicController extends BaseController
|
|||
$image->resizeToLongSide(self::SIZE_BIG);
|
||||
Storage::disk("cache")->put($cacheName."_big", $image->getImageAsString());
|
||||
$ende = microtime(true);
|
||||
Log::info("Dauer umwandlung: ".($ende-$start));
|
||||
Log::info("Gesamtzeit: ".(microtime(true)-$globalstart));
|
||||
Log::info("Dauer umwandlung big: ".($ende-$start). "/" . "Gesamtzeit: ".(microtime(true)-$globalstart));
|
||||
return Storage::disk('cache')->response($cacheName."_big");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue