Donut Caching ASP.NET MVC2

隐身守侯 提交于 2019-12-04 03:22:02

Donut caching does not work with ASP.NET MVC 2, see http://forums.asp.net/t/1521502.aspx :

Supporting donut caching would require view engines to be able to send an array consisting of literal text + callbacks to the writer. This is a major plumbing change and is not something that will be included in v2 of the product.

Jan Jongboom

Cross-post from another question:

Donut Caching (yes, the real thing) is available as part of my 'speed-lib' for MVC: Moth. Works in both ASP.NET MVC 2 and MVC 3.

Docs are at the wiki, and examples are in the Mvc3.Demo folder.

I think this may be useful. It is possible using Html.Action and passing HttpContextBase instance to the child controller. Check it http://eliasbland.wordpress.com/2010/04/08/donut-caching-in-asp-net-mvc-2-with-html-action/

but I don't know if it works properly so far...

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