Cache like stackoverflow
Posted
by Deumber
on Stack Overflow
See other posts from Stack Overflow
or by Deumber
Published on 2010-06-05T11:46:38Z
Indexed on
2010/06/05
11:52 UTC
Read the original article
Hit count: 212
asp.net-mvc
|cache
I'm creating a ASP.NET MVC 2 application that envolve a section like questions here in stackoverflow (mine is with exams is another kind of application but can be extrapolate to same general idea of SO).
OK I'm creating a cache per page, its mean something like this:
[OutputCache(Duration=60, VaryByParam="page")] ActionResult AllQuestions(int page){...}
But i want to invalidate that cache when a new question is created. What can i do.
I'm open to suggestions, perhaps this is not the best way to solve this problem
© Stack Overflow or respective owner