From 9cb7946d698ce70c4f05cde1774db181e99ec161 Mon Sep 17 00:00:00 2001 From: Shish Date: Tue, 9 Feb 2010 15:13:24 +0000 Subject: [PATCH] make memcachecache pay attention to the URI --- core/database.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/database.class.php b/core/database.class.php index 91fa60ea..2a196b46 100644 --- a/core/database.class.php +++ b/core/database.class.php @@ -183,8 +183,9 @@ class MemcacheCache implements CacheEngine { var $hits=0, $misses=0; public function __construct($args) { + $hp = split(":", $args); $this->memcache = new Memcache; - $this->memcache->pconnect('localhost', 11211) or ($this->use_memcache = false); + @$this->memcache->pconnect($hp[0], $hp[1]); } public function get($key) {