Advanced Redis Caching 2026
Take your WordPress site from fast to lightning fast with Redis Object Cache
Expected Results: 40-70% faster page loads • Lower server load • Better PageSpeed scores
1. Install & Configure Redis on Ubuntu VPS
apt update
apt install redis-server php8.3-redis -y
# Enable Redis
systemctl enable --now redis-server
# Test Redis
redis-cli ping
# Should return: PONG
2. Best Plugin Setup (2026 Recommendation)
Recommended: LiteSpeed Cache + Redis (easiest & most powerful)
Advanced LiteSpeed Cache Redis Settings:
- Object Cache → Enable Redis
- Host:
127.0.0.1 - Port:
6379 - Database:
0or1 - Password: (if you set one)
- Enable Persistent Connection
3. Advanced Configuration (High Performance)
# Edit Redis config
nano /etc/redis/redis.conf
# Add / Modify these lines:
maxmemory 2gb # Adjust based on your VPS RAM
maxmemory-policy allkeys-lru
timeout 300
tcp-keepalive 60
# Restart Redis
systemctl restart redis-server
4. Redis Object Cache Plugin (Advanced Users)
Install Redis Object Cache by Till Krüss (premium features available)
5. Monitoring Redis Performance
# Check Redis stats
redis-cli INFO stats
redis-cli INFO memory
# Real-time monitoring
redis-cli --stat
Pro Tips for Maximum Performance 2026
- Use separate Redis instance for object cache if you have high traffic
- Enable Redis Sentinel for high availability
- Combine with LiteSpeed Cache + Cloudflare APO
- Monitor hit/miss ratio — aim for >85% hit rate
- Clear Redis cache after major updates:
redis-cli FLUSHALL