php-the-right-way icon indicating copy to clipboard operation
php-the-right-way copied to clipboard

The statement about non-shared APCu data between FastCGI workers is confusing

Open andrew-demb opened this issue 1 year ago • 0 comments

I think the statement

Note that when running PHP as a (Fast-)CGI application inside your webserver, every PHP process will have its own cache, i.e. APCu data is not shared between your worker processes

is confusing - because the most popular (Fast-)CGI implementation - php-fpm shares cache between worker processes (as of https://github.com/krakjoe/apcu/issues/121).

There is a difference between using fpm and using fcgi, I should probably put in a PR to phptherightway to clear it up.

Originally posted by @andrew-demb in https://github.com/codeguy/php-the-right-way/issues/299#issuecomment-2183160006

andrew-demb avatar Jun 21 '24 18:06 andrew-demb