Closed BrainforgeUK closed 10 years ago
This is a general howto question, not a bug or valid issue related to opcache. This sort of Q is best asked on http://stackoverflow.com/ or equivalent support forum.
It depends not on sub-domains, but on a way you run PHP. In case you run few PHP pools (separate for each sub-domain), all of them have separate caches and you have to call opcache_get_status() in each sub-domain.
But you may run single PHP pool for all sub-domains as well.
The opcache_get_status() function only appears to return information about the current (sub)domain - http://php.net/opcache
If I have a mydomain.net and a subdomain admin.mydomain.net how can I get to the opcode cache status of mydomain.net ?
If I have a number of subdomains sharing the same code base do they all use the same copy of the opcode cache?