Support » Plugin: Redis Object Cache » Correct way to use wp_cache_key_salt with wp_redis_database?

  • Resolved seotaro

    (@seotaro)


    Hello.

    I run a few WordPress websites on single VPS server and all websites`s database are seperated. (Ubuntu 20.04 + Mariadb + Php7.4 + Nginx)

    In this case, is it correct to set it below in each wp-config.php ?

    
    define( 'WP_CACHE_KEY_SALT', 'first-website.com' );
    define( 'WP_REDIS_DATABASE', 0 );
    
    define( 'WP_CACHE_KEY_SALT', 'second-website.com' );
    define( 'WP_REDIS_DATABASE', 1 );
    
    define( 'WP_CACHE_KEY_SALT', 'third-website.com' );
    define( 'WP_REDIS_DATABASE', 2 );
    
    • This topic was modified 3 weeks, 6 days ago by seotaro.
Viewing 1 replies (of 1 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    That’s correct 👍

    You can drop the WP_CACHE_KEY_SALT it’s not needed if you use dedicated database numbers.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.