This commit is contained in:
Kekskurse 2021-01-13 18:26:42 +01:00
parent 599d107991
commit f79851960e

View file

@ -56,12 +56,12 @@ class PublicController extends BaseController
return Storage::disk('cache')->response($cacheName."_".$size, null, ['Cache-Control'=> 'max-age='.(60*60*24).', public']);
}
//ORginal File exists need to be resized
//If File exists in the needed format return
$file = null;
if (Storage::disk('cache')->exists($cacheName."_".$size)) {
Log::info("Get orginal size from Cache");
$file = Storage::disk("cache")->get($cacheName."_orginal");
$this->addAccessLog($tenant->id, $gallery->id, $image->id, "Cache", $image->size);
Log::info("Return from Cache, Gesamtzeit: ".(microtime(true)-$globalstart));
return Storage::disk('cache')->response($cacheName."_".$size);
} else {
Log::info("Get from S3");