I
preload Apache::Registry, replacing RegistryLoader, and it works
indentically. Interesting. Can you point me to where in the archives
this is doc'ed? I searched using Apache::RegistryLoader, but didn't find
this specifically. I'd like to learn what I can about
it.
And
I'll check out the current version. Thanks for the
tip!
E
-----Original Message-----
From: Geoffrey Young [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 13, 2000 1:43 PM
To: 'Eric Hastings'; '[EMAIL PROTECTED]'
Subject: RE: Apache::RegistryLoader side effectthis problem with Apache::Registry is well documented in the archives - I really didn't test it to see if it affected RegistryLoader as well, but it sounds the same...try using the current cvs version - it should have the problem licked. If you don't want to use a development version, try preloading Apache::Registry along with RegistryLoader and see if the problem disappears...HTH--Geoff-----Original Message-----
From: Eric Hastings [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 13, 2000 1:18 PM
To: '[EMAIL PROTECTED]'
Subject: Apache::RegistryLoader side effectI have a plain-old CGI script configured to be loaded with Apache::Registry<Location /cgi-bin/myscript.pl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
PerlSendHeader On
</Location>In this configuration, I see the BEGIN block of my script get executed twice per child process. If I add the line "PerlModule Apache::RegistryLoader" to the httpd.conf file, this gets cut down to once per child process (which is what I want!) Is this behavior documented anywhere? I have been scouring Doub's book and other online resources for 2 days, and don't understand this behavior.(An aside: All the docs talk about using "Apache::RegistryLoader->new->handler(...)", and that works to make BEGIN execute only once (I even tried it myself to be sure). But nothing about using RegistryLoader the way I am. Am I doing something horribly wrong?)Thanks.E