WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
[resolved] Memcached and Opcode for Multi-Server Setup (4 posts)

  1. Android63
    Member
    Posted 2 years ago #

    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: http://sivel.net/2010/11/wordpress-caching-comparisons-part-1/).

    This is especially true if I want to use Amazon's ElastiCache system (http://aws.amazon.com/elasticache/), 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?

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. Matt Martz
    Member
    Posted 2 years ago #

    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.

  3. Android63
    Member
    Posted 2 years ago #

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

  4. Frederick Townes
    Member
    Plugin Author

    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic