Symfony2 doctrine clear cache

morteza kavakebi picture morteza kavakebi · Aug 6, 2012 · Viewed 91.7k times · Source

I need to clear my doctrine's cache in Symfony 2.

There must be some way in command line for clear the cache.

Or where should I find and delete the files belonging to cache?

Answer

amitchhajer picture amitchhajer · Aug 6, 2012
app/console

will list how you can do it

 app/console doctrine:cache:clear-metadata 
 app/console doctrine:cache:clear-query  
 app/console doctrine:cache:clear-result 

for symfony 3+:

 php bin/console

and list of comand (for copy/past from project directory):

 php bin/console doctrine:cache:clear-metadata 
 php bin/console doctrine:cache:clear-query  
 php bin/console doctrine:cache:clear-result