Click to See Complete Forum and Search --> : @ Output Cache


Kate_For_U
October 15th, 2003, 05:34 AM
Hi All
Myapplication contains a page that calls an XML Web service every 10 minutes to update the current data. A new page is then displayed for subsequent requests.
I want the same page to be cached and retrieved from the cache during the time between calls to the XML Web service.
I am using
<%@ OutputCache Duration=”600” %>
But this is not working
can somebody help me with the correct directive

Thanx in advance

BMeister
October 21st, 2003, 05:42 AM
If you use the OutputCache directive you also have to include the VaryByParam attribute as well as the Duration attribute. If you're not using the VaryByParam attribute you still need to include it but set it's value to none. i.e.

<%@ OutputCache Duration=”600” VaryByParam="None"%>

Hope this fixes it.

Cheers,
BMeister.