mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-26 10:51:07 -06:00
#827 Fixed swoole config getting loaded on non-swoole contexts when running CLI command first
This commit is contained in:
parent
e4b00e832a
commit
6259c73b33
@ -7,6 +7,9 @@ use Laminas\ConfigAggregator\ConfigAggregator;
|
||||
return [
|
||||
|
||||
'debug' => false,
|
||||
ConfigAggregator::ENABLE_CACHE => true,
|
||||
|
||||
// Disabling config cache for cli, ensures it's never used for swoole and also that console commands don't generate
|
||||
// a cache file that's then used by non-swoole web executions
|
||||
ConfigAggregator::ENABLE_CACHE => PHP_SAPI !== 'cli',
|
||||
|
||||
];
|
||||
|
@ -99,8 +99,6 @@ $helper = new class {
|
||||
|
||||
return [
|
||||
|
||||
'config_cache_enabled' => false,
|
||||
|
||||
'app_options' => [
|
||||
'disable_track_param' => env('DISABLE_TRACK_PARAM'),
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user