HighTechTalks DotNet Forums  

Emptying page-level cached pages

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss Emptying page-level cached pages in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Daren
 
Posts: n/a

Default Emptying page-level cached pages - 12-21-2005 , 03:47 PM






Hi,

I have an asp.net site, with most of the pages having this statement at
the top to cache them for 10 minutes:

<%@ OutputCache Duration="600" VaryByParam="none" %>

Now, under certain circumstances, I want to be able to manually empty
the cache for *all* the pages in the site, as if I was doing an
IISRESET. How could I do this from within an asp.net page?

Daren


Reply With Quote
  #2  
Old   
Teemu Keiski
 
Posts: n/a

Default Re: Emptying page-level cached pages - 12-26-2005 , 12:02 PM






There's Response.RemoveOutputCacheItem method, however you'd need to call it
for every cached page...
http://msdn.microsoft.com/library/de...t emTopic.asp

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke

"Daren" <pearcy (AT) gmail (DOT) com> wrote

Quote:
Hi,

I have an asp.net site, with most of the pages having this statement at
the top to cache them for 10 minutes:

%@ OutputCache Duration="600" VaryByParam="none" %

Now, under certain circumstances, I want to be able to manually empty
the cache for *all* the pages in the site, as if I was doing an
IISRESET. How could I do this from within an asp.net page?

Daren




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.