Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable caching in development environment #494

Closed
chateaux opened this issue Apr 19, 2015 · 3 comments
Closed

How to disable caching in development environment #494

chateaux opened this issue Apr 19, 2015 · 3 comments
Labels

Comments

@chateaux
Copy link

ZF2/Doctrine

I noticed files are stored in the data/DoctrineModule/cache and sometimes I have to delete these files when I make updates to my entities or change DB structures etc.

I did not consciously enable this and have been trying to figure out hot to switch it on and off with not much luck.

Clearly this is a config issue, kindly point me in the direction of the documentation relating to this as it is something I would like to use in production.

For brevity I have posted a detailed outline here on SO: http://stackoverflow.com/questions/29720621/zf2-doctrine-orm-how-to-turn-off-the-doctrinemodule-cache

Many thanks,

@mpalourdio
Copy link
Contributor

Please check 'config_cache_enabled' option for global ZF app and https://github.com/doctrine/DoctrineORMModule/blob/master/docs/cache.md

@chateaux
Copy link
Author

I have the following set in my development config:

array( 'ZF\Apigility\Admin', 'ZF\Configuration', ), 'module_listener_options' => array( 'config_glob_paths' => array('config/autoload/{,*.}{global,local}-development.php'), 'config_cache_enabled' => false, 'module_map_cache_enabled' => false, ), ); This of course does not disable teh DoctrineModule cache

@gianarb
Copy link
Contributor

gianarb commented Apr 20, 2015

Hi @chateaux I don't know if you can disable caching but maybe you can use array_adapter this adapter not persist files in your SO

Doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants