Re: [APC-DEV] apc_store and apc_fetch between apache processes
| From: | shire | Date: | Wed, 04 Mar 2009 23:18:53 +0000 |
| Subject: | Re: [APC-DEV] apc_store and apc_fetch between apache processes | ||
| References: | 1 2 3 | Groups: | php.apc.dev |
| Request: | Send a blank email to php-apc-dev+get-199@lists.php.net to get a copy of this message | ||
Yes, I believe Gopal is working on this.
-shire
Iuri Chaer wrote:
That is problematic with Apache running with the worker MPM and mod_fcgid. Are there plans to have an option to use named locks and one single shared memory space so that there is only one syncronized shared memory space for all PHP processes? "shire" <shire@tekrat.com> wrote in message news:0BD4167A-2CA2-4779-9277-224CCC609D6F@tekrat.com...Every apache httpd child process shares the APC cache, this is part of the purpose of the user cache (to share memory amongst the apache processes). Note, however, that other processes without the common parent such as the command line scripts or another apache server started on the same machine will *not* share the same cache, but will create it's own cache. -shire On May 20, 2008, at 3:37 AM, Andrew Lyczak wrote:Is APC cache memory shared by all apache httpd child processes or does each httpd process have its own APC cache memory? If I call apc_add('foo','bar') from httpd child 1 And later call apc_fetch('foo') from httpd child 2 (a different linux process) will the apc_fetch return 'bar' ? Sorry to post this here (probably not the appropriate venue). My comp.lang.php newsgroup posting went unanswered, and I could not find any APC documentation which would answer this question. Andrew -- APC Development Mailing List (http://pecl.php.net/APC) To unsubscribe, visit: http://www.php.net/unsub.php