Jump to:

23006 Posts in 11856 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » Static Publisher in 2.4.5

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
Go to End
Author Topic: 598 Views
  • micahsheets
    Avatar
    Community Member
    164 Posts

    Static Publisher in 2.4.5 Link to this post

    I was reading up on Static Publisher a little bit. I was wondering what caching SS is using by default in 2.4.5. Do I have to do anything extra to make it cache? It seems like for as long as I have used SS it has always created a cache folder in tmp or I can use silverstripe-cache and it does it automatically. What are the limitations or reasons for doing custom caching?

  • MarcusDalgren
    Avatar
    Community Member
    288 Posts

    Re: Static Publisher in 2.4.5 Link to this post

    Well all that gets stored in the normal cache folder (as far as I know) are cached template files and they're only cached in the sense that they don't get recreated on every request. Static publisher creates html files of all your pages so all that gets served is static html without any database hits and it's insanely fast.

    The limitations of static publisher are primarily that you can't have personalized content on the site since it saves one html file/page. However if you're doing simpler sites it's an awesome alternative.

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Static Publisher in 2.4.5 Link to this post

    I was wondering what caching SS is using by default in 2.4.5.

    Out of the box SS caches compiled templates off the filesystem (stores it as parsed PHP) and it caches the 'manifest' file which stores all the paths to the classes you're using but neither of these allow SS to avoid hitting the database (they only cache a small part of the process).

    Static publisher, like smurkas said, is awesome if you're not building complex, interactive sites as it completely avoids hitting PHP, Database (all the slow things) though partial caching is a huge step up from nothing and is much more flexible.

    598 Views
Page: 1
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.