Perl Monk, Perl Meditation | |
PerlMonks |
Re: Persistent memory with mod_perl and a module.by sharkey (Scribe) |
on Oct 19, 2002 at 17:17 UTC ( [id://206534]=note: print w/replies, xml ) | Need Help?? |
As noted above, each apache child process has its own copy
of the ModCounter package and $cnt variable. A couple
suggestions:
1) Store the counter in a database. This is often the easiest method if your script is database driven anyway. 2) Use one of the shared memory modules from CPAN.
In Section
Seekers of Perl Wisdom
|
|