Page 1 of 1
Deleting Redis cache - separate for each site?
Posted: Fri Sep 25, 2015 1:14 pm
by alexscj
Hello,
when using Redis, wondering if "Delete cache" in Rotation - Specials does:
1). delete all cache at server level for all sites regardless if they're independent installs or slaves
2). deletes only that site's specific cache
3). deletes the cache for all sites that are part of that master-slave scheme
Re: Deleting Redis cache - separate for each site?
Posted: Fri Sep 25, 2015 1:27 pm
by admin
Hi,
It wipes out current redis DB (redis can have up to 16 dbs)
So if all of your sites use the same db - yes
If you have a separate for each - no.
Re: Deleting Redis cache - separate for each site?
Posted: Fri Sep 25, 2015 1:30 pm
by alexscj
Typically sites in a master-slave scj scheme use the same Redis db?
Re: Deleting Redis cache - separate for each site?
Posted: Fri Sep 25, 2015 1:34 pm
by admin
Redis DB is setup for each site separately so it doesn't matter whether it's a master-slave or 2 separate sites. It all depends on your setup.
Re: Deleting Redis cache - separate for each site?
Posted: Fri Sep 25, 2015 1:41 pm
by alexscj
I'm using
$config['redis_database'] = 0
across all sites.
(Server/site) performance wise would you advise on using the same Redis db for all sites or it's better to use separate Redis dbs?
Re: Deleting Redis cache - separate for each site?
Posted: Fri Sep 25, 2015 1:45 pm
by alexscj
While I have you here ), one more related question:
The bigger the "Cache time, seconds" in Rotation Settings, the more server memory Redis will consume?
Re: Deleting Redis cache - separate for each site?
Posted: Fri Sep 25, 2015 1:48 pm
by admin
Somebody's always here
so anytime )
Well, yes and no.
Cache size mostly depends on site layout, amount of galleries and so. Cache time affects the size as well but not that much.
But amount of memory used by redis is setup in redis config ...
Re: Deleting Redis cache - separate for each site?
Posted: Fri Sep 25, 2015 1:55 pm
by alexscj
Thanks for the reply, in case you missed my previous question:
I'm using
$config['redis_database'] = 0
across all sites.
(Server/site) performance wise would you advise on using the same Redis db for all sites or it's better to use separate Redis dbs?
Re: Deleting Redis cache - separate for each site?
Posted: Fri Sep 25, 2015 2:00 pm
by admin
I think differences here can be ignored (if any exist)