bug0r
bug0r

Reputation: 613

MVC3. Razor. How to disable caching for Child Action?

How to disable action result caching for child action in asp.net MVC3 with razor engine?

Upvotes: 0

Views: 1958

Answers (2)

Paul Hiles
Paul Hiles

Reputation: 9788

The MvcDonutCaching NuGet package provides donut caching support in MVC3. See http://www.devtrends.co.uk/blog/donut-output-caching-in-asp.net-mvc-3

Upvotes: 0

Linkgoron
Linkgoron

Reputation: 4870

I believe you can't disable caching for a child action, if the "parent" action has caching, as the whole result is cached.

Upvotes: 4

Related Questions