Copied to clipboard

Flag this post as spam?

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


  • Farhan Ali 5 posts 76 karma points
    Apr 02, 2024 @ 10:55
    Farhan Ali
    0

    How does AppCaches.RuntimeCache clear works in load balanced environment?

    I'm caching a response from a 3rd party API via AppCaches.RuntimeCache.GetCacheItem method as explained here. However, to invalidate the cache I'm not dependent on content publishing notification. We just want to provide a button to manually clear the cache. Docs are little ambiguous about load balanced environment.

    Does invoking the following is enough?

    _runtimeCache.Clear();
    

    Does umbraco automatically notifies or invoke clear method on all server nodes? or Its our app's responsibility to implement ICacheRefresher and write our own logic to refresh it?

  • Yakov Lebski 594 posts 2350 karma points
    Apr 05, 2024 @ 15:21
  • 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