How reload Twig cache in Symfony 2

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

    If you are using opcache/other similar caching, deleting twig's cache folder won't refresh templates as twig cache consist of only .php files. You need to delete twig's cache folder + execute php file which contains:

    opcache_reset();

提交回复
热议问题