Twig does not update symfony changes

I work with Symfony 2.8 in developer mode and Windows 10. When I update the Twig template, I always need to clear the cache to update the rendering. I looked at permissions for the cache of folders and logs, and I have the necessary permissions.

Any help?

+5
source share
1 answer

Go to the application configuration file (by defualt it will be in ../app/config/config.yml from the root directory). Go to twig configuration settings (under the branch :) and change the cache value (which should point to the cache directory) to false:

 twig: cache: false 

If you do not see the cache configuration entry, just add the line above.

Or you can disable the cache branch on web/app_dev.php just to avoid any problems when you are going to push your code in a prod environment.

+5
source

Source: https://habr.com/ru/post/1243930/


All Articles