Skip to content

Commit

Permalink
support for tillkrus redis-cache plugin, remove need for fork
Browse files Browse the repository at this point in the history
  • Loading branch information
JanneAalto committed Feb 26, 2019
1 parent 42b7b89 commit 4860f80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Redis.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit 4860f80

Please sign in to comment.