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)
{
return ApplicationContext.Current.ApplicationCache.RuntimeCache.GetCacheItem<T>(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.
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).
Umbraco XML cache how to see it?
Hi there,
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:
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.
anyone?
Hi Jorge,
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.
Hi Jorge,
Maybe this code will help you:
Thanks,
Alex
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...