Support » Plugin: W3 Total Cache » [Plugin: W3 Total Cache] Memcached and Opcode for Multi-Server Setup

  • Resolved Android63


    I’m setting up an Amazon EC2 server for WordPress and I’m currently caching with APC via the excellent W3 Total Cache plugin.

    This is working well but if I want to scale to a load-balanced multi-server setup, it looks like Memcached is the way to go (according to this article:

    This is especially true if I want to use Amazon’s ElastiCache system (, which is protocol-compliant with Memcached.

    But my question is about Opcode: as I understand it, APC does Opcode but Memcached does not. So, if I switch to Memcached, how can I still benefit from Opcode? Do I need to run two caching systems (APC and Memcached)? if so, which one do I point W3TC at? Or is there another way?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You will still need APC if you want opcode. However, you do not need to configure W3TC for anything APC related. Just modify the settings previously using APC to now use memcached.

    APC opcode is handled by PHP itself, as long as the APC module is loaded, it is not handled in the application code.

    What you had configured in W3TC to use APC previously is just related to object storage, which memcached will now handle.

    Thanks Matt. I’ll give it a try shortly.

    Plugin Author Frederick Townes


    You’ll want APC anyway to speed up normal PHP performance and then for your page caching selecting memcached as the engine and entering the elasticache details is the way to go for page caching (for example) provided you have the pecl memcache PHP extension installed on your EC2 instance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: W3 Total Cache] Memcached and Opcode for Multi-Server Setup’ is closed to new replies.