Changeset 71ee565 in github
- Timestamp:
- Jul 30, 2012 3:10:04 AM (10 months ago)
- Children:
- cfc27c9
- Parents:
- 5f8d59c0
- Files:
-
- 3 edited
-
CHANGELOG (modified) (1 diff)
-
config/main.inc.php.dist (modified) (1 diff)
-
program/include/rcube.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
r5f8d59c0 r71ee565 2 2 =========================== 3 3 4 - Support connections to memcached socket file (#1488577) 4 5 - Enable TinyMCE inlinepopups plugin 5 6 - Update to TinyMCE 3.5.6 -
config/main.inc.php.dist
rb1f30d8 r71ee565 245 245 246 246 // Use these hosts for accessing memcached 247 // Define any number of hosts in the form hostname:port248 $rcmail_config['memcache_hosts'] = null; // e.g. array( 'localhost:11211', '192.168.1.12:11211' );247 // Define any number of hosts in the form of hostname:port or unix:///path/to/socket.file 248 $rcmail_config['memcache_hosts'] = null; // e.g. array( 'localhost:11211', '192.168.1.12:11211', 'unix:///var/tmp/memcached.sock' ); 249 249 250 250 // check client IP in session athorization -
program/include/rcube.php
r0afe279 r71ee565 194 194 $this->mc_available = 0; 195 195 196 // add all lconfigured hosts to pool196 // add all configured hosts to pool 197 197 $pconnect = $this->config->get('memcache_pconnect', true); 198 198 foreach ($this->config->get('memcache_hosts', array()) as $host) { 199 list($host, $port) = explode(':', $host); 200 if (!$port) $port = 11211; 199 if (substr($host, 0, 7) != 'unix://') { 200 list($host, $port) = explode(':', $host); 201 if (!$port) $port = 11211; 202 } 203 else { 204 $port = 0; 205 } 206 201 207 $this->mc_available += intval($this->memcache->addServer($host, $port, $pconnect, 1, 1, 15, false, array($this, 'memcache_failure'))); 202 208 }
Note: See TracChangeset
for help on using the changeset viewer.
