From: Tim Otten Date: Fri, 30 Mar 2018 00:10:39 +0000 (-0700) Subject: (dev/core#179) Redis - Only send AUTH if there's a password X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=62da9ed45c2a1d37f5122fef48d74b3857b1c6d0;p=civicrm-core.git (dev/core#179) Redis - Only send AUTH if there's a password --- 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); + } } /**