I am using Enterprise Library 4.1 Caching mechanism. I have an xml and which will be updated once in 2 months. So I thought of trying to have caching based on file dependency. Everything works fine for me.
Once the xml file modified it updates the cache immediately. But one thing i noticed if there is not hit for sometimes around 30-40 mins (not sure whether it is always 30-50 mins). Probably after a gap of around 45 mins it updates the cache again. If i am
right it should update only when there is an xml change. I didn't drop any dll or restart IIS or not even change web.config. What coudl be the reason? below i am providing by sample code which i am using
string> MenuList =
if ( !MenuCacheMgr.Contains("MenuContentsList"))
FileDependency expirationNotice =
//... do some operations to update dictionary object
// read from cache
MenuList = (
Do Let me know what could be problem?