Is the new APCu APC User Cache shared between processes?

最后都变了- 提交于 2019-12-02 03:58:18

https://github.com/krakjoe/apcu/issues/121

The rule is that only child processes can access what their parent created; In FCGI spawned processes are not necessarily a child of their parent, they may not be actual forks. If your process manager works like conventional FCGI/CGI then you will not be able to share, if it works like FPM, and initializes PHP in a parent and forks child interpreters then you will have no problem.

Apache's prefork and PHP's FPM will share between worker processes (via the parent's memory space).

The CLI will not, as each CLI invocation is a separate process.

You might consider something like memcached or redis as an alternative.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!