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:
| Metric | Without Redis | With Redis | Improvement |
|---|---|---|---|
| Homepage TTFB | 420ms | 180ms | 57% faster |
| Product page TTFB | 380ms | 160ms | 58% faster |
| DB queries/page | 156 | 12 | 92% reduction |
| Admin dashboard load | 2.8s | 1.1s | 61% faster |
| Memory usage | — | 48MB | Minimal overhead |
Enabling Redis on HPanel
- Go to HPanel Dashboard → Performance → Redis
- Click Enable Redis for your domain
- Set memory limit (recommended: 64MB for most sites, 256MB for WooCommerce)
- Install the Redis Object Cache plugin in WordPress
- 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.