Can I use OutputCache with file dependency in ASP.Net MVC?

自闭症网瘾萝莉.ら 提交于 2019-12-07 06:16:53

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!