If your questions are stored in a SQL database you could setup an SQL expiration policy so that when data changes the cache will expire.
– UpTheCreek Dec 23 '10 at 12:55 @UpTheCreek, yes SQL Server only. – Darin Dimitrov Dec 23 '10 at 13:57.
Darin is correct. Additionally, if you don't have SQL Server, or don't want to use it as the cache dependency, you can create a custom cache dependency, as 15seconds has a tutorial on: 15seconds.com/issue/040518.htm.
Remember, there are only two hard problems in computer science, and cache invalidation is one them. Don't add the trouble of caching until you need it. As always, avoid premature optimization like this.
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). But I want to invalidate that cache when a new question is created. What can I do.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.