Skip to main content
Last Reviewed: 2023-08-17

Enable WP-Redis [Deprecated]

How to install and configure WP Redis for WordPress.


Warning:
Warning

This page is considered deprecated.

WP Redis, while still actively maintained, is no longer the preferred method for enabling object cache for WordPress on Pantheon.

Performance and Elite WordPress site(s) that are currently running WP Redis are eligible for an upgraded solution: Enable Object Cache Pro for WordPress.

  1. Navigate to your Pantheon Site Dashboard, select Settings, select Add Ons, then select Add. It might take a couple of minutes for the Object Cache server to come online.

  2. Install the WP Redis plugin via SFTP or Git. You can also install the plugin via Terminus if you set the connection mode to SFTP and run:

If you use WordPress Multisite, you must add the site URL by adding to the command:

  1. Create a new file named wp-content/object-cache.php that contains the following:

This file is a symlink to the /plugins/wp-redis/object-cache.php file. Use SFTP or Git to commit the new file to the Dev environment.

  1. Navigate to the Dev environment's WordPress Dashboard, and verify the installation by selecting Drop-ins from the Plugins section:

The object-cache Drop-In Plugin

You can upgrade by the normal Plugin update mechanism in WordPress or via Terminus when a new version of the WP Redis plugin is released:

Information:
Note

WP Redis is loaded via a drop-in file, so there's no need to activate it on your WordPress sites.

More Resources

How-to Guides

References