Answer the question
In order to leave comments, you need to log in
Doctrine 2 proxy class and metadata cache in production mode - how to implement?
Good evening everyone!
Please share your experience, who has implemented how to clear the metadata cache and generate a proxy in production.
There is an assumption that the most correct option would be to use git hooks (pre-receive).
Answer the question
In order to leave comments, you need to log in
the most correct option is Phing + Ansible/Chiff/Puppets. You build a build with an already warmed up cache, and deploy. On the server, you are already rolling out the migration and transferring the webroot symlink to the new version (or as it will be implemented for you, you can use symlinks, you can use things like Docker).
Well, if you deploy via git, then yes, on hooks. Just not pre, but probably post-receive, if your deployment goes like git push prod master or something like that.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question