Crons
This commit is contained in:
parent
416565f228
commit
46b945daa2
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue