How reload Twig cache in Symfony 2

后端 未结 8 881
伪装坚强ぢ
伪装坚强ぢ 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.

    0 讨论(0)
  • 2020-12-13 18:16

    If you are using OPcache make sure to comment out opcache.validate_timestamps=0 in dev environment.

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