I have a child action method. Can I use OutputCache
with file dependency?I can see only SQLDependency
property in System.Web.Mvc.OutputCacheAttribute
.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Yes you can use outputcache with file dependency. Check the following link for more detail.
http://msdn.microsoft.com/en-us/library/67z4z916.aspx
OR
http://www.c-sharpcorner.com/UploadFile/chinnasrihari/Asp-Net-mvc-framework-server-side-html-caching-techniques/