summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2010-03-04 18:24:32 -0500
committerCraig Andrews <candrews@integralblue.com>2010-03-08 17:17:37 -0500
commit51a245f18c1e4a830c5eb94f3e60c6b4b3e560ee (patch)
tree498f5edd71693396b7c6eb0fd7724664163b9328 /lib
parent6524efd2a0b8684500ef15eb61f740fc7365e1e3 (diff)
Added Memcached plugin (using pecl/memcached versus pecl/memcache)
Diffstat (limited to 'lib')
-rw-r--r--lib/statusnet.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/statusnet.php b/lib/statusnet.php
index eba9ab9b8..ef3adebf9 100644
--- a/lib/statusnet.php
+++ b/lib/statusnet.php
@@ -342,7 +342,11 @@ class StatusNet
if (array_key_exists('memcached', $config)) {
if ($config['memcached']['enabled']) {
- addPlugin('Memcache', array('servers' => $config['memcached']['server']));
+ if(class_exists('Memcached')) {
+ addPlugin('Memcached', array('servers' => $config['memcached']['server']));
+ } else {
+ addPlugin('Memcache', array('servers' => $config['memcached']['server']));
+ }
}
if (!empty($config['memcached']['base'])) {