HighTechTalks DotNet Forums  

invalidating cache on load balancer

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


Discuss invalidating cache on load balancer in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
z. f.
 
Posts: n/a

Default invalidating cache on load balancer - 02-24-2005 , 07:07 AM






Hi,

i have web app that is running on 3 servers with load balancing.
few pages are cache using the configuration:
<%@ OutputCache Duration="300" VaryByParam="*" Location="Server" %>

i need to be able to invalidate if the managament application changes some specific parameters.

how can i configure this kind of cache to be invalid, so it is created next time?
is there a sample of doing this?
is it possible to have a file dependency with this kind of cache? this should be the most helpful solution.

TIA, z.





Reply With Quote
  #2  
Old   
Geir Aamodt
 
Posts: n/a

Default Re: invalidating cache on load balancer - 03-09-2005 , 03:29 PM






Hi,

you could try something like this (within a aspx page on each server):

Response.Cache.SetExpires(DateTime.Now.AddSeconds( YY));

Here you instruct the cache to invalidate itself within YY seconds.
After invalidation you could set expires time back to normal.

Disclaimer:
I have not tried this and recommend a fair amount of testin before applying this.

--

Best regards,
Geir Aamodt
geir.aamodt(AT)bekk.no


"z. f." <zigi (AT) info-scopeREMSPAM (DOT) co.il> wrote

Hi,

i have web app that is running on 3 servers with load balancing.
few pages are cache using the configuration:
<%@ OutputCache Duration="300" VaryByParam="*" Location="Server" %>

i need to be able to invalidate if the managament application changes some specific parameters.

how can i configure this kind of cache to be invalid, so it is created next time?
is there a sample of doing this?
is it possible to have a file dependency with this kind of cache? this should be the most helpful solution.

TIA, z.




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.