Don't switch people from the Memcache to Memcached plugin without their knowledge when using back-compatibility $config['memcached']['enabled']. Performance characteristics for Memcached version on large-scale sites not tested yet.

New installations should be using addPlugin explicitly.
This commit is contained in:
Brion Vibber 2010-03-11 18:10:41 -08:00
parent fe7b063b85
commit b1d90a835f
1 changed files with 1 additions and 5 deletions

View File

@ -342,11 +342,7 @@ class StatusNet
if (array_key_exists('memcached', $config)) {
if ($config['memcached']['enabled']) {
if(class_exists('Memcached')) {
addPlugin('Memcached', array('servers' => $config['memcached']['server']));
} else {
addPlugin('Memcache', array('servers' => $config['memcached']['server']));
}
addPlugin('Memcache', array('servers' => $config['memcached']['server']));
}
if (!empty($config['memcached']['base'])) {