diff --git a/app/Http/Controllers/PublicController.php b/app/Http/Controllers/PublicController.php index 1d4daa8..28a5875 100644 --- a/app/Http/Controllers/PublicController.php +++ b/app/Http/Controllers/PublicController.php @@ -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)) { diff --git a/config/filesystems.php b/config/filesystems.php index 709272f..66179d8 100644 --- a/config/filesystems.php +++ b/config/filesystems.php @@ -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' => [