Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • James Jackson-South 489 posts 1747 karma points c-trib
    Apr 20, 2016 @ 00:01
    James Jackson-South
    0

    PageCacheRefresher.CacheUpdated

    A quicky here,

    If I attach an event handler to PageCacheRefresher.CacheUpdated does that run at all times regardless of whether you are using flexible load balancing or not?

    It appears to.

  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Apr 21, 2016 @ 07:42
    Dave Woestenborghs
    0

    Hi James,

    It will always run. If you are using loadbalancing, flexible or traditional, this is the even you need to clear your own caches.

    Dave

  • James Jackson-South 489 posts 1747 karma points c-trib
    Apr 26, 2016 @ 04:15
    James Jackson-South
    0

    Thanks Dave.

    It's running in my local install too which is a single SQL Express db test site. This means events can potentially be fired when binding to both PageCacheRefresher.CacheUpdated and ContentService.Published

    I dunno if this is by design...

  • Dave Woestenborghs 3504 posts 12134 karma points MVP 9x admin c-trib
    Apr 26, 2016 @ 05:45
    Dave Woestenborghs
    100

    Hi James,

    The ContentService published event will only be fired on the server where the button is pushed. If you have a single instance this is okay.

    But when you have a loadbalanced environment or when you have multiple contentservice published events it's better to use the PageCacheRefresher updated event. This will fire after all publishing events have been completed. And also will be called on all servers.

    Dave

  • James Jackson-South 489 posts 1747 karma points c-trib
    Apr 26, 2016 @ 07:15
    James Jackson-South
    0

    Ah Dave,

    That makes sense now. Much appreciated! :)

Please Sign in or register to post replies

Write your reply to:

Draft