0

How can you configure OutputCache in Asp .NET MVC 2 (with .NET 3.5) so that the cached data is stored in SQL database?

4
  • 2
    would this not negate the reason for caching in the first place? Commented Jan 25, 2011 at 11:55
  • It depends. In my case the web application calls remote web service and every invocation takes up to 10 seconds. Commented Jan 25, 2011 at 11:58
  • would you not want to cache the results from the remote web service then rather then the output from your app? Commented Jan 25, 2011 at 12:06
  • @SamHolder, I absolutely agree with you but there are some conditions which force us to cache output from the web app rather than only the output from the remote web service. Thanks for your pertinent comments nonetheless. Commented Jan 25, 2011 at 12:10

1 Answer 1

1

This could be achieved in ASP.NET 4.0 where you can write a custom cache provider. Quote from this very same blog post:

One limitation of output caching with ASP.NET V1->V3.5, though, is that the cache store itself is not extensible – and the cached content always has to be stored in-memory.

Time to upgrade :-)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.