Title: Redis Multisite Installation
Last modified: July 19, 2025

---

# Redis Multisite Installation

 *  Resolved [thecreator01](https://wordpress.org/support/users/thecreator01/)
 * (@thecreator01)
 * [10 months, 3 weeks ago](https://wordpress.org/support/topic/redis-multisite-installation/)
 * Hello,
   I have a multisite installation. I installed the plugin, added the configurations
   in wp-config.php, and activated Redis on the server. Everything seems to be working
   in the network admin panel. But does this also work for subsites? I’m not sure.
 * I’ve read some sources that a different configuration is required for subsites
   in a multisite Redis installation. For example, it seems that each subsite needs
   to have a table prefix defined in the wp-config.php file.
 * Is it like this?
   $host = $_SERVER[‘HTTP_HOST’] ?? ‘cli’;define(‘WP_CACHE_KEY_SALT’,
   md5($host) . ‘_’);
 * Or is it like this?
   define( ‘WP_REDIS_PREFIX’, ‘site_’ . $_SERVER[‘HTTP_HOST’].‘_’);
 * These are the only configurations I’ve added for Redis in wp-config.php:
 * define(‘WP_REDIS_HOST’, ‘127.0.0.1’);
 * define(‘WP_REDIS_PORT’, 6379);
 * define(‘WP_REDIS_DATABASE’, 0);
 * define(‘WP_REDIS_PASSWORD’, ”);

Viewing 1 replies (of 1 total)

 *  Plugin Author [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * (@tillkruess)
 * [10 months, 3 weeks ago](https://wordpress.org/support/topic/redis-multisite-installation/#post-18564710)
 * Object caching is network-wide. All sites will use Redis and you can’t exclude
   a site from using it.

Viewing 1 replies (of 1 total)

The topic ‘Redis Multisite Installation’ is closed to new replies.

 * ![](https://ps.w.org/redis-cache/assets/icon-256x256.gif?rev=2568513)
 * [Redis Object Cache](https://wordpress.org/plugins/redis-cache/)
 * [Support Threads](https://wordpress.org/support/plugin/redis-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/redis-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redis-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redis-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Till Krüss](https://wordpress.org/support/users/tillkruess/)
 * Last activity: [10 months, 3 weeks ago](https://wordpress.org/support/topic/redis-multisite-installation/#post-18564710)
 * Status: resolved