How reload Twig cache in Symfony 2

后端 未结 8 954
伪装坚强ぢ
伪装坚强ぢ 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 17:52

    I had a similar problem, but deleting the cache-folder did not have any impact on my template and I don't know why. What seems to solve my problem now is the following code in my config_dev.yml:

    twig:
        cache: false
    

    Maybe this is also a solution for you, so that you don't need to use the command all the time.

    References:

    TwigBundle Configuration

    Twig Environment Options

提交回复
热议问题