easyengine icon indicating copy to clipboard operation
easyengine copied to clipboard

[Poll] Redis v/s Memcache for WordPress Object Cache

Open rahul286 opened this issue 11 years ago • 21 comments

Hello Everyone,

We are planning to stop using W3 Total Cache for wordpress object-cache soon. W3 Total Cache is a good plugin but all we will be needing is object-cache.php going ahead.

So I want to know if anyone is using WordPress object cache directly with redis or memcache?

I tried few plugins and come across some more... Below are my observations:

Memcache plugins

  1. https://wordpress.org/plugins/batcache/ (outdated, also has more features)
  2. https://wordpress.org/plugins/memcached/ (outdated)
  3. https://github.com/tollmanz/wordpress-pecl-memcached-object-cache (tried, but it crashed. Will try again)

Redis

  1. https://wordpress.org/plugins/wp-redis/ (did not try but seems biased towards Pantheon hosting comapny)
  2. https://github.com/BenjaminAdams/wp-redis-cache (does more than what we need)
  3. https://github.com/ericmann/Redis-Object-Cache/blob/master/object-cache.php (did not work, will try again)

Basically, I think we just need an object-cache.php file. EE can place fine in right place and add define('WP_CACHE', true); line to wp-config.php.

So please share your object-cache.php and your views.

A note about redis

Redis has 2 PHP libraries - one is Predis (made in PHP) and other one is PECL extension (made in C). I think we should be going with library made in C. EE can install all required dependencies.

rahul286 avatar Mar 20 '15 15:03 rahul286

@RavanH I prefer Redis for its additional features such as wildcard purging. Also, redis has better tools available.

We are using redis for full-page cache support so we will be sticking to redis for object-cache as well.

rahul286 avatar Jun 22 '18 06:06 rahul286