Multiple WordPress sites on single Redis server
-
Hello, I’m new to using Redis, Can I host multiple WordPress sites (60+) and use object caching (for the database) with Redis without problems?
I’m using Plesk with Litespeed EN.as I read I can achieve that in 2 ways either by using different “Redis Database ID” Or different cache key salt parameters on wp-config.php like this:
define(‘WP_CACHE_KEY_SALT’, ‘sitewp1.com’); define(‘WP_CACHE_KEY_SALT’, ‘sitewp2.com’); define(‘WP_CACHE_KEY_SALT’, ‘sitewp3.com’);
*Note: Also each site uses a different table prefix.
The question is does the LSCache plugin use the parameter “WP_CACHE_KEY_SALT” or a different parameter? as the “WP_CACHE_KEY_SALT” used by the “Redis Object Cache” plugin, After I enabled the object cache from sitting with Redis it works fine but it didn’t add the “WP_CACHE_KEY_SALT” to the wp-config.php or should I do that manually?
What’s the right way to use Redis object cache with LSCache with multiple WordPress sites? I don’t prefer using database ID for each site and I don’t mind that all of the websites will use the same Redis database, I liked the way of using different cache key salt parameters and want to know the right way to do it with LSCache.
The last thing is there are a few keys in the wp-cofing.php but none of them “WP_CACHE_KEY_SALT” :
/** * Authentication Unique Keys and Salts. * * Change these to different unique phrases! * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service} * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again. * * @since 2.6.0 */
- The topic ‘Multiple WordPress sites on single Redis server’ is closed to new replies.