Skip to content
Snippets Groups Projects
Commit acd81f6c authored by Andreas Fischer's avatar Andreas Fischer
Browse files

Readd support for memcached_server config variable.

parent 320353c2
Branches
No related tags found
No related merge requests found
......@@ -18,7 +18,15 @@ class Memcached extends Cache {
parent::__construct($prefix);
if (is_null(self::$cache)) {
self::$cache = new \Memcached();
$servers = \OC_Config::getValue('memcached_servers', array(array('localhost', 11211)));
$servers = \OC_Config::getValue('memcached_servers');
if (!$servers) {
$server = \OC_Config::getValue('memcached_server');
if ($server) {
$servers = array($server);
} else {
$servers = array(array('localhost', 11211));
}
}
self::$cache->addServers($servers);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment