We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28120
    • 380 Posts
    I've got a dedicated server with 20 clients on it managed with Plesk.

    I've just installed APC thinking it would be for one domain/vhost but that was a misunderstanding - it's server wide currently.


    • Is APC intelligent enough to know that MODX on one domain is the same as MODX on another domain, or is it based on the full path to the script
    • In a Magento site you can prefix the cache, e.g. ClientA_ - will I run into any conflicts / issues using APC server wide with 20 MODX vhosts

    Thanks

    Mark
      • 22303 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.
        • 28120
        • 380 Posts
        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.