问题
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/
来源:https://stackoverflow.com/questions/21306907/can-i-use-outputcache-with-file-dependency-in-asp-net-mvc