This commit is contained in:
Kekskurse 2021-01-13 18:24:34 +01:00
parent c4fc583369
commit 599d107991

View file

@ -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");
}