On Tue, 23 May 2000, Marc Lehmann wrote:
 
> As a related note, I wondered why there isn't a mod_perl callback that is
> clled _before_ forking, but after configuration parsing. This would allow
> a lot of data sharing between the httpd servers. My module requires you to
> call "configured PApp" at the end of the configuration section so that it
> can pull in most of the code and big data structures before it forks (so
> the data gets shared). AFAIK there is no way to make this automatic.

what's wrong with having 'PerlModule foo' at the bottom of your config
file?  apache 1.3 has no 'post-config' hook, 2.0 does though.
 
> > >Then, when the file is parsed again, _another_ instance of $global gets

> PerlFreshRestart On
> PerlModule X
 
> The module is indeed compiled twice.

yes, because apache does module-init/config-read twice at startup, since
you have 'PerlFreshRestart On', your module is re-compiled on this second
pass.

Reply via email to