Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MVC, Cache individual User Control

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!

like image 238
Alex Avatar asked Nov 22 '25 01:11

Alex


1 Answers

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

like image 74
Tadeusz Wójcik Avatar answered Nov 23 '25 13:11

Tadeusz Wójcik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!