ZF-Commons / ZfcTwig

Zend Framework 2 Module that provides a Twig rendering strategy
BSD 3-Clause "New" or "Revised" License
96 stars 55 forks source link

Clear twig cache #91

Closed pensiero closed 10 years ago

pensiero commented 10 years ago

How to clear the twig cache without doing a rm -r data/cache/twig/* ?

Thanks

spiffyjr commented 10 years ago

That's precisely how to do it. :D

pensiero commented 10 years ago

And how to accomplish it if I do not have apache permissions? Some php code would not be very slow?

Oscar


Oscar Fanelli Gamempire.it - Creatore e Direttore esecutivo Tom's Hardware Italia - Sviluppatore

Email: nesis@gamempire.it Email secondaria: admin@gamempire.it Skype: gamempire Tel: 3388696167

Il giorno 22/apr/2014, alle ore 16:35, Kyle Spraggs notifications@github.com ha scritto:

That's precisely how to do it. :D

— Reply to this email directly or view it on GitHub.

spiffyjr commented 10 years ago

You would need to use a recursive file iterator or something like http://symfony.com/doc/current/components/finder.html and iterate through each file and unlink them.

pensiero commented 10 years ago

Thanks a lot :)

Il giorno 22/apr/2014, alle ore 18:15, Kyle Spraggs notifications@github.com ha scritto:

You would need to use a recursive file iterator or something like http://symfony.com/doc/current/components/finder.html and iterate through each file and unlink them.

— Reply to this email directly or view it on GitHub.