Config file in config/autoload folder not working

I put a config file in APP_PATH/config/autoload, whatever I named it doctrine-mongo-odm.local.php or module.doctrine-mongo-odm.local.php

Not working, I write exit(‘something’); in the config file. Nothing happened. Why?

I am confused.

Maybe the config was cached?

Also, check your autoload config “glob” pattern

For caching check the application configuration in config/application.config.php.

See: https://docs.zendframework.com/zend-mvc/services/#application-configuration-options

@ocramius thank you! I following your advise and change

'config_cache_enabled' => $booleanValue,

now the config file has adopted

thanks for you too @froschdesign