How to correctly invalidate cache on production for Symfony2 application? How to correctly invalidate cache on production for Symfony2 application? symfony symfony

How to correctly invalidate cache on production for Symfony2 application?


You missed env parameter: app/console cache:clear --env=prod --no-debug


i believe you can try app/console cache:clear --no-warmup


To clear the cache and instantly access the data my fix is

sudo app/console cache:clear --env=prod --no-warmup --no-debug

using this command turns off debug, and doesn't have a warmup time before the data is accessible again