Title: [Plugin: W3 Total Cache] Memcached and Opcode for Multi-Server Setup
Last modified: August 20, 2016

---

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

 *  Resolved [Android63](https://wordpress.org/support/users/android63/)
 * (@android63)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-memcached-and-opcode-for-multi-server-setup/)
 * 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/](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/](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/](http://wordpress.org/extend/plugins/w3-total-cache/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Matt Martz](https://wordpress.org/support/users/sivel/)
 * (@sivel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-memcached-and-opcode-for-multi-server-setup/#post-2566227)
 * 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.
 *  Thread Starter [Android63](https://wordpress.org/support/users/android63/)
 * (@android63)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-memcached-and-opcode-for-multi-server-setup/#post-2566265)
 * Thanks Matt. I’ll give it a try shortly.
 *  Plugin Contributor [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * (@fredericktownes)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-memcached-and-opcode-for-multi-server-setup/#post-2566269)
 * 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.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [ec2](https://wordpress.org/support/topic-tag/ec2/)
 * [elasticache](https://wordpress.org/support/topic-tag/elasticache/)
 * [opcode](https://wordpress.org/support/topic-tag/opcode/)

 * 3 replies
 * 3 participants
 * Last reply from: [Frederick Townes](https://wordpress.org/support/users/fredericktownes/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/plugin-w3-total-cache-memcached-and-opcode-for-multi-server-setup/#post-2566269)
 * Status: resolved