Home Features Pricing
Resources
Company 🟢 Live Demo
Free Lifetime Get License
Back to Blog
Performance

Redis Object Cache for WordPress: Configuration, Benchmarks & Best Practices

HPanel Team March 2, 2026 8 min read
Redis Object Cache for WordPress: Configuration, Benchmarks & Best Practices

What is Redis Object Cache?

Redis is an in-memory data structure store that can be used as a database, cache, and message broker. When used with WordPress, Redis caches the results of database queries in RAM, dramatically reducing the number of MySQL queries per page load.

Without Redis, a typical WordPress page might execute 50-200 database queries. With Redis object cache, subsequent page loads may only need 5-10 queries — the rest are served from memory in microseconds.

Performance Benchmarks

We tested a WordPress site with WooCommerce (500 products) on HPanel with and without Redis:

MetricWithout RedisWith RedisImprovement
Homepage TTFB420ms180ms57% faster
Product page TTFB380ms160ms58% faster
DB queries/page1561292% reduction
Admin dashboard load2.8s1.1s61% faster
Memory usage48MBMinimal overhead

Enabling Redis on HPanel

  1. Go to HPanel Dashboard → Performance → Redis
  2. Click Enable Redis for your domain
  3. Set memory limit (recommended: 64MB for most sites, 256MB for WooCommerce)
  4. Install the Redis Object Cache plugin in WordPress
  5. In WordPress admin, go to Settings → Redis and click Enable Object Cache

Memory Tuning

Redis memory should be sized based on your site's data:

  • Small blog (10-50 posts): 32MB is sufficient
  • Medium site (100+ posts, some plugins): 64MB
  • WooCommerce store (500+ products): 128-256MB
  • Large multisite: 512MB+

Eviction Policies

When Redis reaches its memory limit, it needs to decide what to remove. The recommended policy for WordPress is allkeys-lru (Least Recently Used):

maxmemory-policy allkeys-lru

Troubleshooting

Redis Connection Refused

Check that Redis is running: systemctl status redis

Stale Data After Updates

Flush the Redis cache: redis-cli FLUSHDB or use the WordPress plugin's flush button.

High Memory Usage

Monitor with redis-cli INFO memory and adjust maxmemory as needed.

Conclusion

Redis object caching is one of the most effective performance optimizations for WordPress. With HPanel's one-click Redis setup, you can achieve 40-60% faster page loads with minimal configuration.