There is an awesome attribute OutputCache
[OutputCache(Duration = 60*60 )]
public ActionResult Index()
And it is working fine, but only in case the method is controller's Action Method (the reason is in the code which invokes actionMethod).
I want to store the output of some other method of controller (for instance, the code performs some queries to database and returns a collection)
Is there a mechanism like OutputCacheAttribute? Оr I should write my own caching code?
Thanks in advance!