For FCGI (PHP-FPM also uses FCGI), only php binary and binary libraries remain in memory. Custom PHP code does not.
During this time, how does it handle loaded classes or PHP libraries?
Cleans them, getting them new on new request. You can easily verify that by setting global variables, they disappear at the beginning of a new query.
So, the answer to your (bold) question: Let the direct answer: Yes, it is downloaded and reset for each request, no or! :)
APC does the same. I need to examine the link, there is a web server written in PHP so that it can store everything in memory. Give you real speed, however your application code should correctly handle the changed request logic.
hakre
source share