Crons
This commit is contained in:
parent
ce004bbc85
commit
0095422b2a
2 changed files with 12 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
|
@ -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' => [
|
||||
|
|
Loading…
Reference in a new issue