From: eileen Date: Mon, 11 Apr 2016 23:42:50 +0000 (+1200) Subject: Amend comments & default port for Redis X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9d2f1acbf9f38e776c02aa5481050fd04827ae40;p=civicrm-core.git Amend comments & default port for Redis --- 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')) {