[Poll] Redis v/s Memcache for WordPress Object Cache
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
- https://wordpress.org/plugins/batcache/ (outdated, also has more features)
- https://wordpress.org/plugins/memcached/ (outdated)
- https://github.com/tollmanz/wordpress-pecl-memcached-object-cache (tried, but it crashed. Will try again)
Redis
- https://wordpress.org/plugins/wp-redis/ (did not try but seems biased towards Pantheon hosting comapny)
- https://github.com/BenjaminAdams/wp-redis-cache (does more than what we need)
- 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.
@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.