Kee Hinckley wrote:
> At 4:18 PM -0500 3/22/02, Perrin Harkins wrote:
> 
>> Modules loaded with PerlModule and PerlRequire are not supposed to be 
>> loaded again the second time.  I seem to remember that they are loaded 
>> again when using DSO though, so if you're using DSO you may want to 
>> recompile as static.  Also, if you have PerlFreshRestart on that will 
>> cause a reload.
> 
> 
> If all you were doing was loading a normal Perl module, the single load 
> would be fine.  The catch is that in this case we are loading a Perl 
> module which in turn is registering an Apache module.  The Apache module 
> is being *unloaded* prior to the second pass through the config file.  
> The only way that it will be reloaded is if the Perl module is reloaded 
> on the second pass as well.

If all you want to do is to be able to load the module only during the 
restart use in startup.pl:

   if ($Apache::Server::ReStarting) {
       require "My::Sensitive::Module";
   }


-- 


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Reply via email to