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. |