Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all,
Umbraco 7.5.1 with flexible or traditional lb (2 Virtual machines) update only xml file but page load show old page.
How can I update in-memory cache on my front-end servers?
not working for me
Thanks, Mike
Hi Michael,
Please add code below to application start event of your application:
void PageCacheRefresher_CacheUpdated(PageCacheRefresher sender, Umbraco.Core.Cache.CacheRefresherEventArgs e) { var cacheEnumerator = HttpRuntime.Cache.GetEnumerator(); while (cacheEnumerator.MoveNext()) { HttpRuntime.Cache.Remove(cacheEnumerator.Key.ToString()); } }
It removes in-memory cache. Do you use CachedPartials on your pages?
You can remove xml files also by code on page start.
Thanks,
Alex
Hi Alex,
It works!
Glad to help ! Have a nice day!
is working on a reply...
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.
Continue discussion
Memory cache refresh
Hi all,
Umbraco 7.5.1 with flexible or traditional lb (2 Virtual machines) update only xml file but page load show old page.
How can I update in-memory cache on my front-end servers?
not working for me
Thanks, Mike
Hi Michael,
Please add code below to application start event of your application:
It removes in-memory cache. Do you use CachedPartials on your pages?
You can remove xml files also by code on page start.
Thanks,
Alex
Hi Alex,
It works!
Thanks, Mike
Hi Michael,
Glad to help ! Have a nice day!
Thanks,
Alex
is working on a reply...
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.