This commit is contained in:
Kekskurse 2021-01-13 18:18:59 +01:00
parent 416565f228
commit 46b945daa2

View file

@ -65,9 +65,11 @@ class PublicController extends BaseController
return Storage::disk('cache')->response($cacheName."_".$size);
} else {
Log::info("Get from S3");
$start = microtime(true);
$this->addAccessLog($tenant->id, $gallery->id, $image->id, "Access", $image->size);
$file = Storage::disk($image->driver)->get($image->path);
Storage::disk("cache")->put($cacheName."_orginal", $file);
Log:::info("Dauer s3: ".(microtime(true) - $start));
}
//Resize