For each application, you could write a little cache-dump. Aspx script to kill the cache/application data. Copy it to all your applications and write a hub script to manage the calling.
Up vote 0 down vote favorite share g+ share fb share tw.
Each of our production web servers maintains its own cache for separate web sites (ASP. NET Web Applications). Currently to clear a cache we log into the server and "touch" the web.
Config file. Does anyone have an example of a safe/secure way to remotely reset the cache for a specific web application? Ideally we'd be able to say "clear the cache for app X running on all servers" but also "clear the cache for app X running on server Y".
Edits/Clarifications: I should probably clarify that doing this via the application itself isn't really an option (i.e. Some sort of log in to the application, surf to a specific page or handler that would clear the cache). In order to do something like this we'd need to disable/bypass logging and stats tracking code, or mess up our stats.
Yes, the cache expires regularly. What I'd like to do though is setup something so I can expire a specific cache on demand, usually after we change something in the database (we're using SQL 2000). We can do this now but only by logging in to the servers themselves.
Caching link|improve this question edited Sep 17 '08 at 0:11 asked Sep 16 '08 at 20:46Sean Gough76431026 86% accept rate.
For each application, you could write a little cache-dump. Aspx script to kill the cache/application data. Copy it to all your applications and write a hub script to manage the calling.
For security, you could add all sorts of authentication-lookups or IP-checking. Here the way I do the actual app-dumping: Context.Application.Lock() Context.Session.Abandon() Context.Application.RemoveAll() Context.Application.UnLock().
Found a DevX article regarding a touch utility that look useful. I'm going to try combining that with either a table in the database (add a record and the touch utility finds it and updates the appropriate web. Config file) or a web service (make a call and the touch utility gets called to update the appropriate web.
Config file).
This may not be "elegant", but you could setup a scheduled task that executes a batch script. The script would essentially "touch" the web. Config (or some other file that causes a re-compile) for you.
Otherwise, is your application cache not set to expire after N minutes?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.