Disable in-memory cache repository when running in CLI by default (#4323)

Fixes #4057. Related https://github.com/octobercms/library/pull/401. Credit to @jimcottrell
This commit is contained in:
Jim Cottrell 2019-05-07 12:34:46 -06:00 committed by Luke Towers
parent de8004169a
commit 7fc01bb9ca
1 changed files with 11 additions and 2 deletions

View File

@ -99,9 +99,18 @@ return [
|
| The request cache stores cache retrievals from the cache store
| in memory to speed up consecutive retrievals within the same request.
| Set to true to disable this in-memory request cache.
|
| true - always disable this in-memory request cache
|
| false - always enable; be aware that long-running console commands
| (including queue workers) may retain cache entries in memory that
| have been changed in other processes or would have otherwise
| expired, causing issues with the `queue:restart` command, for
| example
|
| null - enable for HTTP requests, disable when running in CLI
|
*/
'disableRequestCache' => false,
'disableRequestCache' => null,
];