]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't switch people from the Memcache to Memcached plugin without their knowledge...
authorBrion Vibber <brion@pobox.com>
Fri, 12 Mar 2010 02:10:41 +0000 (18:10 -0800)
committerBrion Vibber <brion@pobox.com>
Fri, 12 Mar 2010 02:10:41 +0000 (18:10 -0800)
New installations should be using addPlugin explicitly.

lib/statusnet.php

index ef3adebf94fdf4bbc9223bc6a2d9435bf79e6411..eba9ab9b8eef799f20567efa82cb905e6fa420bd 100644 (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'])) {