How reload Twig cache in Symfony 2

后端 未结 8 956
伪装坚强ぢ
伪装坚强ぢ 2020-12-13 17:51

I have a application which is developed in PHP using the Symfony 2 framework. I have changed a HTML file, but the change is not reflecting when I refresh the page.

8条回答
  •  眼角桃花
    2020-12-13 18:11

    The most simple way, type the command :

    rm -rf app/cache/*
    

    The point is: all files in app/cache/ can be removed freely, they are regenerated when needed.

    If you really want to clear only twig cache :

    rm -rf app/cache//twig
    

    Replace by dev, prod, or test according to your requirements.

提交回复
热议问题