diff --git a/app/Http/Controllers/PublicController.php b/app/Http/Controllers/PublicController.php index 07300bd..07f59a1 100644 --- a/app/Http/Controllers/PublicController.php +++ b/app/Http/Controllers/PublicController.php @@ -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