You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Doug MacEachern <do...@covalent.net> on 2002/06/15 04:51:28 UTC
ModPerl::Registry cache breakage
seems if a script fails to compile ModPerl::Registry still caches it.
for example, consider the following script called test.pl:
use Foo ();
...
where Foo.pm did not exist in @INC. compile fails. ModPerl::Registry
tries to call the test.pl::handler() function which was never created.
on subsequent request no attempt to recompile test.pl and continues to
call the undefined test.pl::handler, even if one puts Foo.pm into a path
in @INC so it can be found. one has to either restart the server
of touch test.pl in the case for ModPerl::Registry to compile it.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: ModPerl::Registry cache breakage
Posted by Stas Bekman <st...@stason.org>.
Doug MacEachern wrote:
> seems if a script fails to compile ModPerl::Registry still caches it.
> for example, consider the following script called test.pl:
>
> use Foo ();
> ...
>
> where Foo.pm did not exist in @INC. compile fails. ModPerl::Registry
> tries to call the test.pl::handler() function which was never created.
> on subsequent request no attempt to recompile test.pl and continues to
> call the undefined test.pl::handler, even if one puts Foo.pm into a path
> in @INC so it can be found. one has to either restart the server
> of touch test.pl in the case for ModPerl::Registry to compile it.
Thanks for the spot!
should be fixed now. I'll do some better polishing and new tests later.
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org