mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-41410 Caching: move comment to the appropriate place.
MDL-38162 fixes the issue about testing the connection to the memcached daemon, which means testing once the connection to the pool of servers and not to each of the servers while being added to the pool. It misses to move the comment to that code too.
This commit is contained in:
parent
d2aa53be1b
commit
a94bc886bb
2
cache/stores/memcache/lib.php
vendored
2
cache/stores/memcache/lib.php
vendored
@ -132,8 +132,8 @@ class cachestore_memcache extends cache_store implements cache_is_configurable {
|
||||
$this->connection = new Memcache;
|
||||
foreach ($this->servers as $server) {
|
||||
$this->connection->addServer($server[0], $server[1], true, $server[2]);
|
||||
// Test the connection to this server.
|
||||
}
|
||||
// Test the connection to the pool of servers.
|
||||
$this->isready = @$this->connection->set($this->parse_key('ping'), 'ping', MEMCACHE_COMPRESSED, 1);
|
||||
}
|
||||
|
||||
|
1
cache/stores/memcached/lib.php
vendored
1
cache/stores/memcached/lib.php
vendored
@ -141,6 +141,7 @@ class cachestore_memcached extends cache_store implements cache_is_configurable
|
||||
}
|
||||
$this->connection->addServers($this->servers);
|
||||
}
|
||||
// Test the connection to the pool of servers.
|
||||
$this->isready = @$this->connection->set("ping", 'ping', 1);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user