Reputation: 33974
I have this in my web-form,
<%@ OutputCache VaryByParam="none" Duration="30" %>
In the page load I have,
protected void Page_Load(object sender, EventArgs e)
{
Thread.Sleep(5000);
But still with every request it takes more than 5 seconds, means caching is not working? I
Upvotes: 1
Views: 1181
Reputation: 183
check this thread: Disable OutputCache on Development System
also if your system is under memory pressure, it may not cache the page or may discard it sooner than anticipated. test on a clean machine.
Upvotes: 1