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.
- unsubscribe instructions Fabio Arciniegas A.
- Re: global variables and reparsing question (low prior... Perrin Harkins
- Re: global variables and reparsing question (low ... Marc Lehmann
- Re: global variables and reparsing question (... Perrin Harkins
- Re: global variables and reparsing questi... Doug MacEachern
- Re: global variables and reparsing questi... Marc Lehmann
- Re: global variables and reparsing qu... Ken Williams
- Re: global variables and reparsing question (low ... Marc Lehmann
- Re: global variables and reparsing question (low prior... Ken Williams
- global variables and reparsing (short reproducible exa... Marc Lehmann
- Re: global variables and reparsing (short reprodu... Doug MacEachern
- Re: global variables and reparsing (short rep... Marc Lehmann
- Re: global variables and reparsing (short... Stas Bekman
- Re: global variables and reparsing (s... Marc Lehmann
- Re: global variables and reparsi... Perrin Harkins
- Re: global variables and rep... Marc Lehmann
- Re: global variables and rep... Doug MacEachern
- Re: global variables and reparsing (short reprodu... Perrin Harkins
- Re: global variables and reparsing (short rep... Doug MacEachern
- Re: global variables and reparsing (short... Marc Lehmann