• Resolved strarsis

    (@strarsis)


    I just noticed that when using multiple sites with WP Redis and the same Redis server,
    issues occur, as having parts/pages of other sites.

    Is it possible to have multiple sites with same Redis server?
    The CACHE_DB config maybe?

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

    (@danielbachhuber)

    Hi @strarsis,

    To use the same Redis server with multiple, discreet WordPress installs, you can use the WP_CACHE_KEY_SALT constant to define a unique salt value for each install.

    Thread Starter strarsis

    (@strarsis)

    @danielbachhuber: As CACHE_DB and WP_CACHE_KEY_SALT can be used, individually or as combination, what would be the most recommendable setup?
    The downside of CACHE_DB is that Redis uses integers for addressing individual databases (on the same redis server), hence there can be an extra lookup step involved in order to avoid collision between sites.
    Does partitioning each site cache into a separate redis database (of same redis server) improve the performance?

    Plugin Author Daniel Bachhuber

    (@danielbachhuber)

    @strarsis Oh, I don’t know which would be better, to be honest. I’d imagine they’re roughly comparable in terms of performance.

    I think CACHE_DB is passed in the initial connection request. I wasn’t aware of a second look up.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multiple sites?’ is closed to new replies.