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.
I restarted the server. No luck.
I tried to remove the Twig folder from the /protected/cache/
page itself. This is not loading.
How can I reload the Twig cache?
Notes:
The most simple way, type the command :
rm -rf app/cache/*
The point is: all files in app/cache/
can be removed freely, they are regenerated when needed.
If you really want to clear only twig cache :
rm -rf app/cache/<environment>/twig
Replace <environment>
by dev
, prod
, or test
according to your requirements.