Re: [APC-DEV] apc_store and apc_fetch between apache processes
[email protected] (shire) Tue, 20 May 2008 13:08:59 -0700
| Newsgroups | php.apc.dev |
|---|---|
| Message-ID | <[email protected]> |
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