diff options
Diffstat (limited to 'classes/Memcached_DataObject.php')
-rw-r--r-- | classes/Memcached_DataObject.php | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index 7ca2c7db2..84529ce9a 100644 --- a/classes/Memcached_DataObject.php +++ b/classes/Memcached_DataObject.php @@ -69,20 +69,7 @@ class Memcached_DataObject extends DB_DataObject } static function memcache() { - if (!common_config('memcached', 'enabled')) { - return NULL; - } else { - $cache = new Memcache(); - $servers = common_config('memcached', 'server'); - if (is_array($servers)) { - foreach($servers as $server) { - $cache->addServer($server); - } - } else { - $cache->addServer($servers); - } - return $cache; - } + return common_memcache(); } static function cacheKey($cls, $k, $v) { |