I am in the middle of implementing an application using ASP.NET MVC and would love to cache the data passed to user controls or the output rendering on some user controls that I render using the Html.RenderPartial, that way I don't have to query the DB with every request I do to the controller for a new view.
Asked
Active
Viewed 329 times
1
-
Giving that there is no solution as of yet for this question, I will leave the question unanswered and will updte once the MVC team comes up with a viable solution. – samiq Oct 18 '08 at 12:59
2 Answers
3
That appears to be one of those 1 million dollar questions!
It seems that a lot of people are having that problem, but the solution is not trivial.
Check out an issue reported recently on the ASP.NET MVC Codeplex site...

Elijah Manor
- 17,923
- 17
- 72
- 79
0
I would maybe suggest using the sub controllers from the MVC Contrib and then caching the controller's method using the OutputCache stuff.

rball
- 6,925
- 7
- 49
- 77