perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adi Yatama Adi Guna <adi.yat...@gmail.com>
Subject Re: Apache::Registry executing scripts multiple times
Date Fri, 06 Nov 2009 04:22:45 GMT
HTTP header missing?  text/plain

Philippe M. Chiasson wrote:
> On 09-11-04 17:58 , Dave Morgan wrote:
>   
>> Hi All,
>> 	Please forgive me if the answer is in the docs, I looked without success.
>> I have a very simple index_test.pl script which appears to get called by Apache::Registry
>> multiple times. I have tested in single server mode (httpd -X) and still get the
same
>> results. The output is correct but the error_log shows multiple calls from the
>> Apache::Registry module. While this simple program appears to get called 5 times
>> our big one was only getting called twice, however, that did have a very noticeable
>> effect on response time.
>>
>> We have also removed the Apache::Reload module without effect.
>>
>> Any ideas, pointers or help appreciated
>>
>> Dave
>> ###############################################################
>> Environment:
>> 	Apache 1.3.37
>> 	mod-perl 1.30
>> 	perl 5.8.8
>> ################################################################
>> Relevent httpd.conf section:
>>
>> ScriptAlias /metapoint/ "/home/tomcat/metapoint/trunk/"
>> <Directory "/home/tomcat/metapoint/trunk">
>>                 AllowOverride None
>>                 SetHandler perl-script
>> 		PerlInitHandler Apache::Reload
>>                 PerlHandler Apache::Registry
>>                 Options ExecCGI
>>                 Order allow,deny
>>                 Allow from all
>> </Directory>
>>
>> ################################################################
>> index_test.pl:
>>
>> our $i;
>>     
>
> our ? shouldn't that be my ? our makes that variable a package global,
> so it will stick around between requests, just like $some::package::name
> would.
>
>   

Mime
View raw message