From 46b945daa2b91c1bca75e7c4c04832a740350e11 Mon Sep 17 00:00:00 2001 From: Kekskurse Date: Wed, 13 Jan 2021 18:18:59 +0100 Subject: [PATCH] Crons --- app/Http/Controllers/PublicController.php | 2 ++ 1 file changed, 2 insertions(+) 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