mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-38162 memcache: fixed up the memcache plugins
This commit is contained in:
parent
1dd6835d8c
commit
ff6f9d3aa6
2
cache/stores/memcache/lib.php
vendored
2
cache/stores/memcache/lib.php
vendored
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
2
cache/stores/memcached/lib.php
vendored
2
cache/stores/memcached/lib.php
vendored
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user