views:

424

answers:

1

How do I cache an individual user control with ASP.NET MVC? I also need the VaryByParam etc support that usually comes with ASPX Output Caching. I don't want to cache the entire action though, only one of my user controls in the view.

An example would be nice :) Thank you!

+3  A: 

Phil Haack has written good article about that , it's called dnout hole caching http://haacked.com/archive/2009/05/12/donut-hole-caching.aspx

Tadeusz Wójcik
the correct link is http://haacked.com/archive/2009/05/12/donut-hole-caching.aspx
mohamadreza
Fixed the link.
Deniz Dogan