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 3 posts 73 karma points
    21 days ago
    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 552 posts 2116 karma points
    17 days ago
Please Sign in or register to post replies

Write your reply to:

Draft