From 697e0fd241afccaef2b4f4e8eb145a3379ba8844 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Thu, 7 Dec 2017 12:40:26 +0900 Subject: [PATCH] Accept Unix socket paths starting with unix: --- modules/admin/admin.admin.controller.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/admin/admin.admin.controller.php b/modules/admin/admin.admin.controller.php index 40748efce..f498e9958 100644 --- a/modules/admin/admin.admin.controller.php +++ b/modules/admin/admin.admin.controller.php @@ -722,7 +722,11 @@ class adminAdminController extends admin { if ($vars->object_cache_type === 'memcached' || $vars->object_cache_type === 'redis') { - if (starts_with('/', $vars->object_cache_host)) + if (starts_with('unix:/', $vars->object_cache_host)) + { + $cache_servers = array(substr($vars->object_cache_host, 5)); + } + elseif (starts_with('/', $vars->object_cache_host)) { $cache_servers = array($vars->object_cache_host); }