-
MODX Staff
- 10,725 Posts
Good questions, but I think each unique copy of the file is cached by APC (i.e. it is based on full path to the script). Even if not, there is only a certain amount of memory that can be allocated to APC opcode caching per machine AFAIK (about 32Mb), or at least without custom compilation of some lower-level applications on the server. If each site is opcode caching 20Mb of code, then there is likely going to be constant swapping of opcode cache entries.
Thanks - initially I set the cache to the default 32MB and the cache was resetting every few minutes.
I've now set the cache to 256MB, it's been running an hour and 73% full and no resets. I'll leave it for a day or two and see what happens.