How to correctly invalidate cache on production for Symfony2 application?

后端 未结 3 1148
慢半拍i
慢半拍i 2021-02-07 15:47

I changed the configuration of the application and deployed the new code to production server. Since the application does not parse the configuration files and use precompiled c

3条回答
  •  孤独总比滥情好
    2021-02-07 16:32

    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

提交回复
热议问题