From 9d2f1acbf9f38e776c02aa5481050fd04827ae40 Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 12 Apr 2016 11:42:50 +1200 Subject: [PATCH] Amend comments & default port for Redis --- CRM/Utils/Cache/Redis.php | 2 +- templates/CRM/common/civicrm.settings.php.template | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CRM/Utils/Cache/Redis.php b/CRM/Utils/Cache/Redis.php index 793f311bb5..da73fca9c5 100644 --- a/CRM/Utils/Cache/Redis.php +++ b/CRM/Utils/Cache/Redis.php @@ -34,7 +34,7 @@ */ class CRM_Utils_Cache_Redis implements CRM_Utils_Cache_Interface { const DEFAULT_HOST = 'localhost'; - const DEFAULT_PORT = 11211; + const DEFAULT_PORT = 6379; const DEFAULT_TIMEOUT = 3600; const DEFAULT_PREFIX = ''; diff --git a/templates/CRM/common/civicrm.settings.php.template b/templates/CRM/common/civicrm.settings.php.template index cee15b1d74..f6906bcdf1 100644 --- a/templates/CRM/common/civicrm.settings.php.template +++ b/templates/CRM/common/civicrm.settings.php.template @@ -322,14 +322,16 @@ if (!defined('CIVICRM_DB_CACHE_HOST')) { } /** - * Change this if you are not using the standard port for your cache server + * Change this if you are not using the standard port for your cache server. + * + * The standard port for Memcache & APCCache is 11211. For Redis it is 6379. */ if (!defined('CIVICRM_DB_CACHE_PORT')) { define('CIVICRM_DB_CACHE_PORT', 11211 ); } /** - * Change this if your cache server requires a password (currently only works + * Change this if your cache server requires a password (currently only works * with Redis) */ if (!defined('CIVICRM_DB_CACHE_PASSWORD')) { -- 2.25.1