From 62da9ed45c2a1d37f5122fef48d74b3857b1c6d0 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 29 Mar 2018 17:10:39 -0700 Subject: [PATCH] (dev/core#179) Redis - Only send AUTH if there's a password --- CRM/Utils/Cache/Redis.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Utils/Cache/Redis.php b/CRM/Utils/Cache/Redis.php index 07279d530d..2dcaea323d 100644 --- a/CRM/Utils/Cache/Redis.php +++ b/CRM/Utils/Cache/Redis.php @@ -105,7 +105,9 @@ class CRM_Utils_Cache_Redis implements CRM_Utils_Cache_Interface { echo 'Could not connect to redisd server'; CRM_Utils_System::civiExit(); } - $this->_cache->auth(CIVICRM_DB_CACHE_PASSWORD); + if (CRM_Utils_Constant::value('CIVICRM_DB_CACHE_PASSWORD')) { + $this->_cache->auth(CIVICRM_DB_CACHE_PASSWORD); + } } /** -- 2.25.1