Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

changing templates not changing site...


Reply


10 Posts   2526 Views

Avatar
swaiba

Forum Moderator, 1798 Posts

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.

Avatar
martimiz

Forum Moderator, 1098 Posts

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...