I have a mod_perl system accepting API calls from different client systems Suppose in the child perl program I have calls like this which does some heavy processing
$conf{$client_id} = generate_client_conf($client_id); # returns a ref to a hash
I would like to re-use this variable $conf{$client_id} in other child processes How can I do this ?
The variables cannot be loaded at startup.pl ,but needs to be cached once it is generated
memcached
and associated Perl modules. This is not a strict answer to your problem (memcached is a separate process, not caching inside Apache), but may well solve your performance issue. – Camilla