Crons
This commit is contained in:
parent
0095422b2a
commit
d619cb21ae
1 changed files with 1 additions and 2 deletions
|
@ -51,9 +51,8 @@ class PublicController extends BaseController
|
|||
|
||||
//File exists in the right size
|
||||
if (Storage::disk('cache')->exists($cacheName."_".$size)) {
|
||||
Log::info("Get from Cache");
|
||||
$this->addAccessLog($tenant->id, $gallery->id, $image->id, "Cache", Storage::disk('cache')->size($cacheName."_".$size));
|
||||
Log::info("Return from Cache, Gesamtzeit: ".(microtime(true)-$globalstart));
|
||||
Log::info("Return ".$size." from Cache, Gesamtzeit: ".(microtime(true)-$globalstart));
|
||||
return Storage::disk('cache')->response($cacheName."_".$size, null, ['Cache-Control'=> 'max-age='.(60*60*24).', public']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue