Skip to content

Commit

Permalink
fix(config): add default value for disabledApcuCache configuration (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasalexandre9 authored Sep 19, 2024
1 parent 7674469 commit 7f59f84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"illuminate/http": "^8.0|^9.0|^10.0|^11.0",
"illuminate/routing": "^8.0|^9.0|^10.0|^11.0",
"illuminate/support": "^8.0|^9.0|^10.0|^11.0",
"forestadmin/php-datasource-customizer": "^1.11.6",
"forestadmin/php-datasource-eloquent": "^1.11.6",
"forestadmin/php-datasource-customizer": "^1.11.7",
"forestadmin/php-datasource-eloquent": "^1.11.7",
"doctrine/dbal": "^3.0"
},
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion src/Providers/AgentProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function boot()
// set cache file configuration
$filesystem = new Filesystem();
$directory = config('forest')['cacheDir'];
$disabledApcuCache = config('forest')['disabledApcuCache'];
$disabledApcuCache = config('forest')['disabledApcuCache'] ?? true;
AgentFactory::$fileCacheOptions = compact('filesystem', 'directory', 'disabledApcuCache');

$this->app->instance(AgentFactory::class, self::getAgentInstance());
Expand Down

0 comments on commit 7f59f84

Please sign in to comment.