How to correctly invalidate cache on production for Symfony2 application?

后端 未结 3 1154
慢半拍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

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

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

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

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

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