php-the-right-way
php-the-right-way copied to clipboard
The statement about non-shared APCu data between FastCGI workers is confusing
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