Skip to content

Commit

Permalink
Merge pull request #7213 from ProcessMaker/observation/FOUR-17536
Browse files Browse the repository at this point in the history
FOUR-17536 Setup redis as default CACHE_DRIVER
  • Loading branch information
ryancooley authored Aug 13, 2024
2 parents 9ade481 + d2ee34f commit 4172772
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ProcessMaker/Providers/LicenseServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Illuminate\Support\ServiceProvider;
use Predis\Connection\ConnectionException;
use ProcessMaker\LicensedPackageManifest;
use RedisException;

/**
* Provide our ProcessMaker specific services.
Expand All @@ -27,7 +28,7 @@ public function boot(): void

try {
$expires = Cache::get(LicensedPackageManifest::EXPIRE_CACHE_KEY);
} catch (ConnectionException $e) {
} catch (ConnectionException | RedisException $e) {
$expires = null;
}

Expand Down
2 changes: 1 addition & 1 deletion config/cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
|
*/

'default' => env('CACHE_DRIVER', 'file'),
'default' => env('CACHE_DRIVER', 'redis'),

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit 4172772

Please sign in to comment.