MDL-38162 memcache: fixed up the memcache plugins

This commit is contained in:
Sam Hemelryk 2013-02-22 14:23:18 +13:00
parent 1dd6835d8c
commit ff6f9d3aa6
2 changed files with 2 additions and 2 deletions

View File

@ -116,8 +116,8 @@ class cachestore_memcache extends cache_store implements cache_is_configurable {
foreach ($this->servers as $server) {
$this->connection->addServer($server[0], $server[1], true, $server[2]);
// Test the connection to this server.
$this->isready = @$this->connection->set("ping", 'ping', MEMCACHE_COMPRESSED, 1);
}
$this->isready = @$this->connection->set("ping", 'ping', MEMCACHE_COMPRESSED, 1);
}
/**

View File

@ -140,8 +140,8 @@ class cachestore_memcached extends cache_store implements cache_is_configurable
$this->connection->setOption($key, $value);
}
$this->connection->addServers($this->servers);
$this->isready = @$this->connection->set("ping", 'ping', 1);
}
$this->isready = @$this->connection->set("ping", 'ping', 1);
}
/**