From 71ee565dfc5b40bee5ed8f66d75b4ff9f78a3976 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Mon, 30 Jul 2012 03:10:04 -0400
Subject: [PATCH] Support connections to memcached socket file (#1488577)

---
 config/main.inc.php.dist |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config/main.inc.php.dist b/config/main.inc.php.dist
index 7c22b8f..16557bd 100644
--- a/config/main.inc.php.dist
+++ b/config/main.inc.php.dist
@@ -244,8 +244,8 @@
 $rcmail_config['session_storage'] = 'db';
 
 // Use these hosts for accessing memcached
-// Define any number of hosts in the form hostname:port
-$rcmail_config['memcache_hosts'] = null; // e.g. array( 'localhost:11211', '192.168.1.12:11211' );
+// Define any number of hosts in the form of hostname:port or unix:///path/to/socket.file
+$rcmail_config['memcache_hosts'] = null; // e.g. array( 'localhost:11211', '192.168.1.12:11211', 'unix:///var/tmp/memcached.sock' );
 
 // check client IP in session athorization
 $rcmail_config['ip_check'] = false;

--
Gitblit v1.9.1