ASP.NET MVC 1.0: OutputCache, RenderPartial and WriteSubstitution
after digging into this topic and having the req开发者_JAVA百科uirement, that a single page should be totally cached, except for a
Html.RenderPartial("LogOnUserControl");
i couldn't find any working solution on this... the only "its getting warmer" solution i found was this one , which unfortunately is not working with a "partial view", which requires the
Request.IsAuthenticated
attribute ( the fakeContext is losing this info )
Have you heard of any ( other ) solution to cache a whole page except for a single "RenderPartial" call?!
Phil Haack has a great article on this that he calls Donut Caching.
Check it out at http://haacked.com/archive/2008/11/05/donut-caching-in-asp.net-mvc.aspx
精彩评论