• Resolved gioni

    (@gioni)


    Hi!

    If I use the plugin without WP_CACHE_KEY_SALT defined, I’m unable to retrieve updated settings (i.e. manually updating settings in the Dashboard). The settings are actually saved into the DB, but the plugin doesn’t update cached values. I have several websites on the host, but I defined different databases for each.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    If you have multiple WordPress installs using the same Redis connection, then yes, you’ll need to create a different WP_CACHE_KEY_SALT value for each WordPress install.

    The WP_CACHE_KEY_SALT constant ensures each cache key unique to each WordPress install.

    Thread Starter gioni

    (@gioni)

    Thanks for the prompt answer! Please, clarify. What is the database field in the settings of the plugin intended for? I can just use different databases for different websites?

    Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Please, clarify. What is the database field in the settings of the plugin intended for?

    I’m not sure what you’re referring to here, as there isn’t settings UI for this plugin.

    The ‘database’ key in the $redis_server global can be used to specify the Redis database to connect to. Here is more detail on using Redis databases.

    Thread Starter gioni

    (@gioni)

    Yes, I mean $redis_server array that I defined with database = 1 for the first site and database = 2 for the second one. Do I have to use WP_CACHE_KEY_SALT if I have two different databases configured?

    Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    Do I have to use WP_CACHE_KEY_SALT if I have two different databases configured?

    No, you don’t need WP_CACHE_KEY_SALT if you’re using two different databases.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Is WP_CACHE_KEY_SALT mandatory?’ is closed to new replies.