You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Albert Micheev <am...@gmx.de> on 2002/07/21 21:41:52 UTC

Apache::Registry

Hallo modperl,

I think, that there is an error in logic of the Apache::Registry.

RewriteRule ^/(de|fr|es|ru|tt|en)(/(.*))?$ /cgi-bin/script.pl/$3 [E=LANGUAGE:$1]

Each call of the script with different languages initiates compilation
of the script, while in hash $Apache::Registry->{$package} $package
key formed from Apache->request->uri instead Apache->request->filename.

-- 
MfG, Albert           <am...@cpan.org>


Re: Apache::Registry

Posted by Nathan Byrd <na...@byrd.net>.
Albert,

I'm not sure if this solves your problem, but I believe that
Apache::RegistryNG compiles based on the filename instead of the uri
(since it is derived from Apache::PerlRun, but overrides
namespace_from() to be shift->{r}->filename).  Thanks,

Nathan Byrd


On Sun, 2002-07-21 at 14:41, Albert Micheev wrote:
> Hallo modperl,
> 
> I think, that there is an error in logic of the Apache::Registry.
> 
> RewriteRule ^/(de|fr|es|ru|tt|en)(/(.*))?$ /cgi-bin/script.pl/$3 [E=LANGUAGE:$1]
> 
> Each call of the script with different languages initiates compilation
> of the script, while in hash $Apache::Registry->{$package} $package
> key formed from Apache->request->uri instead Apache->request->filename.
> 
> -- 
> MfG, Albert           <am...@cpan.org>
> 
>