Switched to persistent memcached connections
This commit is contained in:
parent
b4d9b0e182
commit
21a1b730e1
2 changed files with 2 additions and 2 deletions
|
@ -139,7 +139,7 @@ class Cache extends Object
|
|||
if ($this->connection === null)
|
||||
{
|
||||
$this->connection = new Memcache();
|
||||
$this->connection->connect($this->hostname, $this->port);
|
||||
$this->connection->pconnect($this->hostname, $this->port);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
2
jar.php
2
jar.php
|
@ -718,7 +718,7 @@ class Cache extends Object
|
|||
if ($this->connection === null)
|
||||
{
|
||||
$this->connection = new Memcache();
|
||||
$this->connection->connect($this->hostname, $this->port);
|
||||
$this->connection->pconnect($this->hostname, $this->port);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue