OutputCache with Page not working propely

S

Sudhir Sharma

guys,
I have this code in my .aspx file.
<%@ OutputCache Duration="500" VaryByCustom="OrganizationID" VaryByParam="None"
%>

and I have overriden the method "GetVaryByCustonString()" in my global.asax.cs
file. whenever the organization is changed for the Page, it should invalidate
the Cache and show the new information based on the organization. it is not
doing that.
I put the breakpoints in the code.It is hitting the "GetVaryByCustomString()"
only for the first 2 times. after that it is not going to it. and it is showing
the Cached page again and again.
Is there any way to Invalidate the Page Output before the Desired time (
in this case it is 500 secs).
any help is appreciated.
Thanks
Sudhir Sharma
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top