We have 1 server running 2 applications with the following setup:
Example.com + Example.com/blog (Both wordpess installs with blog being in sub-direcotory)
Example2.com (woocommerce)+ Example2.com/blog (sub-directory wordpress)
We use REDIS as both object and database cache for all 4 wordpress installations along with Varnish cache:
Before implementing the setup we had the following questions:
- Since application settings such as varnish are going to be shared with the sub-directory, how do we control the varnish settings individually for the sub-directory app? Eg, if we switch off varnish for main app, then sub-directory app loses varnish too?
- PHP settings: How do we selectively increase or decrease php memory limit of sub-directory apps?
- If we exclude cookies and urls in varnish settings in main app, then are these settings shared by sub-directory apps too?
In essence, how do we control the isolation of 2 apps in cloudways?
Redis specific questions with woo-commerce :
- Can you please confirm that redis settings are server specific and NOT application specific.
- In the kb http://www.cloudways.com/blog/install-redis-cache-wordpress/ it is mentioned that with W3tc, we need to only choose Redis and it works out of the box. Do you think that is all?
For method 2 in the KB, the wp-config file is recommended to have an unique salt and key value such that multiple apps can use redis without conflict and we believe this should be done in our setup. Will sub-directory apps need additional settings or as long as each website has its own unique salt and key-values everything will work fine? Please confirm the need to tweak the wp-config file.
Do we need to make WP_REDIS_SELECTIVE_FLUSH as TRUE in WP-CONFIG.PHP . According to Tillkruss plugin description that seems to flush only Redis cache that matches the SALT cache key of that one Wordpress app (not the entire Redis cache on server). Can you please confirm this as an absolute need to avoid conflicts and enhance performance as selective flush will enhance speed for all apps using redis.
Do we need to name the tables differently for redis to work? Ie. chage wp_ to unique (good for security + maybe redis?)
Can you please confirm that redis settings can be configured only for the whole server and not application specific?
Do we need to do anything else for multiple woocommerce/wordpress apps to run sumulteniouly for redis to work?
Can 2 woocommerce installs run at the same time in 1 server all using redis as both object and database cache (OR 1 as main app and the other in the sub-directory)? How to avoid conflicts in such a case?
Does anyone have experience to highlight issues in using redis as both object and database cache in woocommerce and multiple wordpress installs running in the same server and in sub-directories (our structure mentioned in the beginning)?
Are any woocommerce specific settings required for using Redis from your experience?
Cloudways needs woo-commerce specific KBs urgently to implement Redis and Varnish. Specifically, if multiple wordpress/woo-commerce installs are run in 1 server and in sub-directories. We intend to capture the information form this discussion and convert it into a detailed and logical article for the rest of the users in cloudways.
Thanks a ton in advance