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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…