Title: PHP Memcache or Memcached?
Last modified: August 22, 2016

---

# PHP Memcache or Memcached?

 *  [gogetter](https://wordpress.org/support/users/gogetter/)
 * (@gogetter)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-memcache-or-memcached/)
 * Hello,
 * PHP 5.5 offers 2 modules with similar names – memcache and memcached. Which one
   do I need to install to enable database and object cache support for this plugin?
 * Thanks!
 * [https://wordpress.org/plugins/w3-total-cache/](https://wordpress.org/plugins/w3-total-cache/)

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

 *  [Willie Jackson](https://wordpress.org/support/users/williejackson/)
 * (@williejackson)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-memcache-or-memcached/#post-5300384)
 * You need both. One is the service/daemon (memcached), one is the module that 
   lets memcached talk to PHP (memcache).
 *  Thread Starter [gogetter](https://wordpress.org/support/users/gogetter/)
 * (@gogetter)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-memcache-or-memcached/#post-5300393)
 * Thanks Willie!
 * Makes me wonder what the logic is of having them separated… Maybe to allow the
   option of having your own client talk to the service/daemon.
 * I take it W3TC is using “memcache” for talking to “memcached”.
 *  Thread Starter [gogetter](https://wordpress.org/support/users/gogetter/)
 * (@gogetter)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-memcache-or-memcached/#post-5300419)
 * I just realized that, being confused myself, I was adding to the confusion… So
   here is the question formulated better, I hope.
 * I understand that the service/daemon is installed on Linux with the “memcached”
   package.
 * However, for the “memcache” part of the equation I understand that Ubuntu 14.04
   offers 2 package options, “php5-memcache” and “php5-memcached”, the former being
   the older version, and the latter being the newer and more feature-rich option.
 * Am I thinking in the right direction, and will W3TC work with both “php5-memcache”
   and “php5-memcached”, or one is preferred over the other?
 * Thanks again!
 *  [Willie Jackson](https://wordpress.org/support/users/williejackson/)
 * (@williejackson)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-memcache-or-memcached/#post-5300466)
 * Neither is preferred from a W3 Total Cache perspective, and the next release (
   0.9.2.5) will add support for the more actively maintained version.
 *  Thread Starter [gogetter](https://wordpress.org/support/users/gogetter/)
 * (@gogetter)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-memcache-or-memcached/#post-5300480)
 * From what I have read on the web, this seems to be the newer one, “php5-memcached”.
 * Thanks again.
 *  [Willie Jackson](https://wordpress.org/support/users/williejackson/)
 * (@williejackson)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/php-memcache-or-memcached/#post-5300527)
 * My pleasure.

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

The topic ‘PHP Memcache or Memcached?’ 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

 * [database cache](https://wordpress.org/support/topic-tag/database-cache/)
 * [memcache](https://wordpress.org/support/topic-tag/memcache/)
 * [object-cache](https://wordpress.org/support/topic-tag/object-cache/)

 * 6 replies
 * 2 participants
 * Last reply from: [Willie Jackson](https://wordpress.org/support/users/williejackson/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/php-memcache-or-memcached/#post-5300527)
 * Status: not resolved