Method for clearing apache's mod_proxy cache?

2000-08-03 Thread Matthew Lewinski

We use mod_proxy to set up a reverse proxy to help regulate
loads on our backend mod_perl servers. Unfortunately, 
whenever we change images on these backends, the change 
will not be immediately reflected until the proxy cache 
expires for that image (every 4 hours).
 
Currently, in order to force a cache clear, we must take the 
proxy down and then start it again: a poor solution as it 
cannot be automated. (We have a tool that helps automate site 
updates.)
 
We are wondering if there is a way to tell mod_proxy to clear 
its cache aside from doing a server restart. We have tried 
sending it signals to no avail, and removing the cache files 
manually causes the proxy server to hang.
 
Upon inspection, there does not appear to be functions in 
mod_proxy that allow a cache flush, so the answer might be 
that it is impossible. 
 
Any insight, however, is appreciated.
 
Thanks,
Matthew Lewinski



Re: Method for clearing apache's mod_proxy cache?

2000-08-03 Thread Perrin Harkins

On Thu, 3 Aug 2000, Matthew Lewinski wrote:
 We are wondering if there is a way to tell mod_proxy to clear 
 its cache aside from doing a server restart. We have tried 
 sending it signals to no avail, and removing the cache files 
 manually causes the proxy server to hang.

Doesn't the built-in garbage collection just unlink files and remove
directories?  That shouldn't cause it to hang.  Is there something unusual
about your setup?

- Perrin