How reload Twig cache in Symfony 2

后端 未结 8 950
伪装坚强ぢ
伪装坚强ぢ 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:13

    You have to do some changes in app.php file located in web folder.

    Change:

    $kernel = new AppKernel('prod', false);    
    

    to:

    $kernel = new AppKernel('prod', true);
    

    and clear the cache if you want.

提交回复
热议问题