perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Refreshing Caches at server restart
Date Mon, 19 Apr 2004 09:52:23 GMT
I have a few modules which cache a few arrays. I want to get around the problem of these arrays
staying cached when Apache Restarts gracefully. I can't have the server stop and start, and
Apache::Reload isn't really the solution for this problem (or at least I don't think it is).
Has anybody done something which can allow me to force certain modules to reload/refresh whenever
Apache does a Graceful restart?

Chris Faust <> wrote:Thanks Geoffrey,

That is exactly what I wanted to know.

----- Original Message ----- 
From: "Geoffrey Young" 
To: "Chris Faust" 
Cc: "Tom Schindl" ; 
Sent: Sunday, April 18, 2004 1:23 PM
Subject: Re: Defining specific vars in conf for a shared script

> Chris Faust wrote:
> > That helps Tom, I wasn't even sure if it was "PerlSetVar" that I needed
> > do.
> >
> > Beyond that, how do I get that from within script? If I'm going to use
> > something in my script to read in the conf file then how do I know which
> > config file I want?
> >
> > Using your example is there some
> > "$r->get_vhost_settings{'HTML_TEMPLATE_ROOT'}" to get that value?
> for PerlSetVar it's
> use Apache::RequestUtil ();
> use APR::Table ();
> $r->dir_config->get('HTML_TEMPLATE_ROOT');
> $r will be scoped to the current request, so you'll only get those
> PerlSetVar settings that apply to the current vhost or container.
> this is pretty standard stuff, so you might want to check out some of the
> docs or books listed at for more on directive scoping,
> PerlSetVar and the like.
> --Geoff

Report problems:
Mail list info:
List etiquette:

View raw message