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.
@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?
@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.