Jump to:

23576 Posts in 19403 Topics by 2893 members

General Questions

SilverStripe Forums » General Questions » changing templates not changing site...

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

Page: 1 2
Go to End
Author Topic: 2492 Views
  • swaiba
    Avatar
    Forum Moderator
    1796 Posts

    Re: changing templates not changing site... Link to this post

    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.

  • martimiz
    Avatar
    Forum Moderator
    1091 Posts

    Re: changing templates not changing site... Link to this post

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

    2492 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.