How to correctly invalidate cache on production for Symfony2 application?

后端 未结 3 742
庸人自扰
庸人自扰 2021-02-07 15:36

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:20

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

    0 讨论(0)
  • 2021-02-07 16:30

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

    0 讨论(0)
  • 2021-02-07 16:31

    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

    0 讨论(0)
提交回复
热议问题