How can I keep the Compiled Templates from caching during development? I'm currently developing some templates in Craft. My work flow is

&gt; Make a change to the template file
&gt; Save the file, which automatically loads to the server
&gt; Reload a test page in a web browser


About half the time, and somewhat erratically the adjusted template does not load. Once it is not loading, no amount of browser reloading, clearing local caches etc will help. The only thing that I have been able to find that will consistently fix this is to go in CP Settings and clear the Compiled Template cache. Obviously this is a pain to do each time, and slows my development time considerably.

Initially I tried to set a Craft config of 'cache' =&gt; false, because I read this advice somewhere, but I see it doesn't appear in the documentation, and it doesn't work. I've also tried  'cacheDuration' =&gt; 'PT1S' to no avail.

The cacheMethod is set to Default. Craft version is current.
If you're in devMode, then Twig's compiled templates will be regenerated on every request.  Otherwise, they'll be regenerated when Twig sees that the source template's date modified timestamp has changed.

As of PHP 5.5+, PHP's opCache is enabled by default, which might explain what you're seeing. If you're in development, you'll want to disable that to make sure PHP isn't doing any caching at the byte level.