Crons
This commit is contained in:
parent
599d107991
commit
f79851960e
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue