Skip to content

Commit 9f9f03c

Browse files
committed
support for tillkrus redis-cache plugin, remove need for fork
1 parent 42b7b89 commit 9f9f03c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Redis.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,10 @@
1313
ini_set('session.save_handler','redis');
1414
ini_set('session.save_path',"tcp://$url[host]:$url[port]?auth=$url[pass]");
1515
}
16+
if (getenv('REDIS_GLOBAL_GROUPS')) {
17+
$groups = array_map('trim', explode(',', getenv('REDIS_GLOBAL_GROUPS')));
18+
if (!empty($groups)) {
19+
define('WP_REDIS_GLOBAL_GROUPS', $groups);
20+
}
21+
}
1622
}

0 commit comments

Comments
 (0)