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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

changing templates not changing site...


Go to End


10 Posts   4699 Views

Avatar
swaiba

Forum Moderator, 1899 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, 1391 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...

Go to Top