Jump to:

10931 Posts in 2614 Topics by 1810 members

All other Modules

SilverStripe Forums » All other Modules » StaticPublisher - insert or update - or batch

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 903 Views
  • martimiz
    Avatar
    Forum Moderator
    1068 Posts

    StaticPublisher - insert or update - or batch Link to this post

    Is it at all possible to find out if a page is being newly published or only updated?

    For example: if the page is newly published I have to update the sidemenu for parent and sibblings, so that means rewriting the cache for a lot of pages, whereas on a simple update only the page itself needs to be re-cached. I'd love to use this info in my pagesAffectedByChanges() function.

    [EDIT] Or would it be difficult to create a batch action just to publish static pages? Because now you have to create complex conditions in pagesAffectedByChanges() - or refresh the entire cache. I'd like to have a more resourcefriendly inbetween approach?

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