Permalink
Browse files

MDL-38162 memcache: fixed up the memcache plugins

  • Loading branch information...
1 parent 09de5eb commit 7a3a5766171d46ecf2de806518824fd8993d7bcf Sam Hemelryk committed Feb 22, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 cache/stores/memcache/lib.php
  2. +1 −1 cache/stores/memcached/lib.php
@@ -116,8 +116,8 @@ public function __construct($name, array $configuration = array()) {
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);
}
/**
@@ -140,8 +140,8 @@ public function __construct($name, array $configuration = array()) {
$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);
}
/**

0 comments on commit 7a3a576

Please sign in to comment.