Setting Up Redis Object Cache for WordPress
Redis cache dramatically speeds up your WordPress site by caching database queries in memory.
Prerequisites
Redis is already installed and running on all Hoststack.pro servers.
Steps
- Login to your WordPress admin
- Go to Plugins → Add New
- Search for Redis Object Cache
- Install and Activate the plugin by Till Krüss
- Go to Settings → Redis
- Click Enable Object Cache
Add to wp-config.php
Add these lines to your wp-config.php file:
define('WP_REDIS_HOST', '127.0.0.1');
define('WP_REDIS_PORT', 6379);
define('WP_CACHE', true);
Verify
Go to Settings → Redis — status should show Connected.
