About Database IDs in Redis Cache

[ad_1]

hello.

I’m running multiple websites on a single VPS server, some of them using W3 TOTAL CACHE, some not.

I use Redis as the cache method for the websites using W3 Total Cache, and Redis Object cache for the websites not using Total Cache.

And I’ve uniqueized the Redis Database ID for both caching plugins.

My question is that when I checked using redis-cli, monitor command,

If I used Redis Object Cache, the database number is divided as follows, but for W3 total cache, I saw that all websites use the same database (0).

[3 unix:/var/run/redis/redis.sock]
[2 unix:/var/run/redis/redis.sock]

[0 unix:/var/run/redis/redis.sock] "SELECT" "21"
[0 unix:/var/run/redis/redis.sock] "SELECT" "22"

I thought the database numbers would be split, but is this normal behavior and I can just use it? Or is there something I should be configuring somewhere?

Thanks!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer