From 21a1b730e1dd3a16e03ff9c52defedcc36f16c18 Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Tue, 19 Feb 2013 13:45:38 -0500 Subject: [PATCH] Switched to persistent memcached connections --- classes/Cache.php | 2 +- jar.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Cache.php b/classes/Cache.php index 3a847e8..8be0a20 100644 --- a/classes/Cache.php +++ b/classes/Cache.php @@ -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; diff --git a/jar.php b/jar.php index bd21971..b500ddd 100755 --- a/jar.php +++ b/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;