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 75 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 591 posts 2347 karma points
    Apr 05, 2024 @ 15:21
Please Sign in or register to post replies

Write your reply to:

Draft