In my MVC3 project, I use some output caching with the attribute OutputCacheset in the action. However, there are certain sections on this page that I do not want to cache.
OutputCache
Is it possible that some partial elements in my view override page caching?
Now you can get the correct donut caching by downloading the MvcDonutCaching NuGet package. See http://mvcdonutcaching.codeplex.com/ and http://www.devtrends.co.uk/blog/donut-output-caching-in-asp.net-mvc-3 for more details .
, "" . : ASP.NET MVC 3
:
- ASP.NET
, : http://weblogs.asp.net/scottgu/archive/2006/11/28/tip-trick-implement-donut-caching-with-the-asp-net-2-0-output-cache-substitution-feature.aspx
This is called donut caching and is not supported out of the box in MVC3. Check out my similar question here . In particular, the Jan Jongboom Moth library that he offers can do this (although I cannot confirm or deny it)