diff --git a/src/Redis.php b/src/Redis.php index 9c142ce..b46d83f 100644 --- a/src/Redis.php +++ b/src/Redis.php @@ -13,4 +13,10 @@ ini_set('session.save_handler','redis'); ini_set('session.save_path',"tcp://$url[host]:$url[port]?auth=$url[pass]"); } + if (getenv('WP_REDIS_GLOBAL_GROUPS')) { + $groups = array_map('trim', explode(',', getenv('WP_REDIS_GLOBAL_GROUPS'))); + if (!empty($groups)) { + define('WP_REDIS_GLOBAL_GROUPS', $groups); + } + } }