views:

23

answers:

1

I'm not at a development system where I can test this. If I output cache a view, and inside that view have a Html.RenderAction that loads some html from a separate action, would that newly pulled in HTML be cached or would Html.RenderAction run every time, thus acting as donut caching for ASP.NET MVC 2.0?

A: 

No this does not get you donut caching. The complete result of the action is cached.

I think there is no way for donut caching in ASP.NET MVC2. Hopefully it is high on the list of todos of Scott Guthrie and his team

Malcolm Frexner