warning...
if (Director::isDev()) {
SSViewer::flush_template_cache();
}
Whilst many have had no problem with the above - I have - I have also fixed others problems by advising to remove this piece of code. Every now and again (whilst in dev mode obvioulsy) an error of cannot include cache file appears. I don't advise using it.