Copied to clipboard

Flag this post as spam?

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


  • lucuma 261 posts 563 karma points
    Oct 31, 2016 @ 18:16
    lucuma
    0

    Trigger method on each instance of web farm

    My question: Is there a way in umbraco to trigger a method to be called (endpoint, etc) on each instance?

    Since Umbraco registers each instance in the UmbracoServer table, how is Umbraco generating the computerName field? I could use this table and the job scheduler to do it.

    It looks something like this:

    RD000223F8055EB//LM/W3SVC/1785223127/ROOT

    RD000223F8055EB is the machine name but the rest I'm not sure if there is a method that is exposed to generate the full string so it can be compared on each instance?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Nov 01, 2016 @ 07:04
    Dave Woestenborghs
    0

    Hi Lucuma,

    What you need is a cache refresher : https://our.umbraco.org/documentation/Reference/Cache/#icacherefresher

    Unfortunatly it's not well documented.

    But here is a sample of cacherefresher : https://github.com/Jeavon/SEOCheckerCacheRefresher

    If you need more examples I can look one up for you.

    Dave

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies