I would like to cache the hardest database activities on my asp.net-mvc site. In my research, I found
But I don't feel like I'm still getting. I want to be able to cache my POST request depending on a few parses. These parses are in the object. Therefore, I would like to cache the result of the following query:
public ActionResult AdvancedSearch(SearchBag searchBag)
Where searchBag is an object that contains (a bunch) of additional search parameters. My views themselves are easy (as it should be), but accessing the data can take quite a while, depending on which fields are filled in the search bag.
I have a feeling that I should cache on my datalayer, and not on my actions.
How should I use VaryByParam in the OutputCache attribute?
caching asp.net-mvc
Boris Callens Dec 22 '08 at 10:51 2008-12-22 10:51
source share