This commit is contained in:
Kekskurse 2021-01-13 18:42:06 +01:00
parent ce004bbc85
commit 0095422b2a
2 changed files with 12 additions and 2 deletions

View File

@ -47,7 +47,7 @@ class PublicController extends BaseController
$size = $request->input("size", "medium");
//$size = "medium";
$cacheName = "cache_".$tenant->id."_".$gallery->id."_".$image->id;
$cacheName = "cache/".$tenant->id."_".$gallery->id."_".$image->id;
//File exists in the right size
if (Storage::disk('cache')->exists($cacheName."_".$size)) {

View File

@ -35,9 +35,19 @@ return [
'root' => storage_path('app'),
],
'cache' => [
/*'cache' => [
'driver' => 'local',
'root' => storage_path('cache'),
],*/
'cache' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'),
'url' => env('AWS_URL'),
'endpoint' => env('AWS_ENDPOINT'),
],
's3' => [