Daniel McBrearty wrote:
OK, I fixed it. Classic modperl mistake, I guess ...

The

my $cache;

is not shared because the subs look like named inner subs to
Apache::Registry. The solution is to do

use vars '$cache';

I can't say for sure without seeing your code, but this doesn't sound right. There was no use of Registry in the pseudo-code you showed earlier (it was a module and startup.pl), and using a lexical variable as a permanent cache should work fine.

It probably doesn't matter if it's working for you, but be careful about jumping to conclusions on this one.

- Perrin

Reply via email to