I have a partialView, containing a dropdownlist which filled by data from database. I want to cache this partialview due to rare change data. So I add [outputcache] attribute to action to cache action but when data in database change, I can not update cached data.
First I tried to remove cache for this action like this post :
But nothing happened and it showed old data. Then I Tried to Use SqlCacheDependency, but i find out that OutputCacheAttribute can not used for child actions.
I don't know how to handle this. Can any one help me. Thank you in advance