Hi there,
I'm a little unclear on the lifecycle of things with axkit, mod_perl
and the like. For example, if in an xsp I look at a local file using
XML::Simple to grab some configuration information (like location of a
log4perl config file, server name, etc) can I do that lookup just once
and stuff it somewhere like an application server variable? Or is that
type of information better suited somewhere else (httpd.conf?). Or does
my xsp have to look that info up every time it is called?
Also, (and maybe this is just a simple perl question) if I have a perl
package like the following:
package some::package;
my %cacheofobjects = {};
sub add2cache
{
my $this = shift;
my $obj = shift;
my $name = $obj->name;
$cacheofobjects{$name} = $obj;
}
sub getfromcache
{
my $this=shift;
my $name = shift;
return ($cacheofobjects{$name});
}
that my xsp uses to cache objects between hits, where does this cache
live? Or does it? I'm afraid I don't understand the lifecycle of perl
objects esp in the context of axkit. Thanks in advance for your help!
Ken.