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

  1. Login to your WordPress admin
  2. Go to Plugins → Add New
  3. Search for Redis Object Cache
  4. Install and Activate the plugin by Till Krüss
  5. Go to Settings → Redis
  6. 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.

Je li Vam ovaj odgovor pomogao? 0 Korisnici koji smatraju članak korisnim (0 Glasovi)