21309 Posts in 5738 Topics by 2603 members
| Go to End | ||
| Author | Topic: | 1661 Views |
-
Re: changing templates not changing site...

17 August 2011 at 10:14pm
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.
-
Re: changing templates not changing site...

17 August 2011 at 10:25pm
I have no idea if this is the case here, probably not, but I thought I'd mention: for pages using static caching, just flushing the template wouldn't work - you'd have to republish the page to have it take effect...
also the fact that adding a querystring (even ?1=2 could work) to the URL does the trick, might even point in the direction of some other (client-side?) caching besides the ss template-cache...
| 1661 Views | ||
| Go to Top |

