Re: [APC-DEV] apc_store and apc_fetch between apache processes
| From: | shire | Date: | Tue, 20 May 2008 20:08:59 +0000 |
| Subject: | Re: [APC-DEV] apc_store and apc_fetch between apache processes | ||
| References: | 1 | Groups: | php.apc.dev |
| Request: | Send a blank email to php-apc-dev+get-127@lists.php.net to get a copy of this message | ||
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