Re: share use vars?

2009-07-17 Thread Michael Peters
Fayland Lam wrote: I'm wondering in which way the $geo_ip is sharable through the threads. we are using "server/mpm/prefork" Neither. Prefork doesn't use threads it uses separate processes. And processes cannot share Perl variables like that. Both of the examples you showed would only have a

Re: share use vars?

2009-07-17 Thread Michael Peters
Brad Van Sickle wrote: I'm also wondering why this needs to be shared between processes... but if it is required, you can share variables between mod_perl processes by caching them on server startup, assuming that they are read only. Calling this variable "shared" is a little misleading. If yo