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
I was given an existing Umbraco project wherein I saw almost codes are being cache, but I only know bit regarding caching.
On the project it has a class named "CacheManager" and full of methods with "ApplicationContext.Current.ApplicationCache.RuntimeCache.GetCacheItem", ".RequestCache", and any kinds of cache.
Now I wonder how can I see these caches, specially the keys because I saw this code:
public static T GetCacheItem<T>(string cacheKey)
Is there any way I can see the list of cacheKey and its corresponding values? so I know what cacheKey to get? Thanks in advance.
I'm sorry, I don't fully understand your question. Are you asking if you can see what is in the XML cache? If so, you simply need to open the Umbraco.xml file under App_Data. This contains your published items cache that Umbraco predominantly uses.
Not the xml, I want to see the internal cache, and if its possible to see it.
Maybe this code will help you:
foreach (var item in ApplicationContext.Current.ApplicationCache.RuntimeCache.ToDictionary())
You can use Glimpse (free, open-source → http://getglimpse.com/). It has Cache Tab which is showing the content of RuntimeCache (+ lot of other useful features helping to diagnose an app).
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted