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.
source share