Title: Redis not using correct databases
Last modified: December 28, 2016

---

# Redis not using correct databases

 *  [justin-bigscoots](https://wordpress.org/support/users/justin-bigscoots/)
 * (@justin-bigscoots)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/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=1128862
 * You 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.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

## Tags

 * [redis](https://wordpress.org/support/topic-tag/redis/)

 * 0 replies
 * 1 participant
 * Last reply from: [justin-bigscoots](https://wordpress.org/support/users/justin-bigscoots/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/redis-not-using-correct-databases/)
 * Status: not resolved