Hi,
I solved most of the issues I had with caching. But still there is one thing. I have a UserControl for which I use output caching. Just like this:
<%@ OutputCache Duration="1200" VaryByParam="none" %>
However, as you can see, the control is recreated every 12 minutes, because it takes from 5 to 10 seconds to generate it.
Now, the default behavious for ASP.NET is to create the control when user enter the page and keep it in cache for 12 minutes. Then when after another 5 minutes user enters the page the control is created again.
Is there a way to force ASP.NET to recreate the control after the 12 minutes cache expires? No matter on the next user visit?
Or even a perfect solution: recreate control in background after lets say 11 minutes 50 seconds, and than just replace the actual one with the new one after 12 minutes?
Thanks for help!