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?
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?
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?
I believe you need to implement https://docs.umbraco.com/umbraco-cms/reference/cache#icacherefresher
is working on a reply...