Redis not using correct databases
-
Hello,
We ran into an issue where when going to the admin URL of one site, brought us to a different sites URL, after flushing the redis cache, everything was fine, I did notice this:
# redis-cli INFO | grep ^db
db0:keys=422,expires=422,avg_ttl=1490610
db1:keys=3018,expires=3013,avg_ttl=1128862You can see only db0 and db1 are being populated, where as in the W3TC configs I have:
Site1
# grep dbid wp-content/w3tc-config/master.json
“dbcache.redis.dbid”: 1,
“objectcache.redis.dbid”: 1,
“pgcache.redis.dbid”: 1,
“minify.redis.dbid”: 1,Site2
# grep dbid wp-content/w3tc-config/master.json
“dbcache.redis.dbid”: “2”,
“objectcache.redis.dbid”: “2”,
“pgcache.redis.dbid”: “2”,
“minify.redis.dbid”: 2,I am thinking that the sites cache is being stored within the same databases or at least some of it which is causing issues.
- The topic ‘Redis not using correct databases’ is closed to new replies.