MemCache is already used...
This commit is contained in:
parent
69001a375c
commit
9ca5fcd51a
@ -176,7 +176,7 @@ class NoCache implements CacheEngine {
|
|||||||
public function get_hits() {return 0;}
|
public function get_hits() {return 0;}
|
||||||
public function get_misses() {return 0;}
|
public function get_misses() {return 0;}
|
||||||
}
|
}
|
||||||
class MemCache implements CacheEngine {
|
class MemcacheCache implements CacheEngine {
|
||||||
var $hits=0, $misses=0;
|
var $hits=0, $misses=0;
|
||||||
|
|
||||||
public function __construct($args) {
|
public function __construct($args) {
|
||||||
@ -255,7 +255,7 @@ class Database {
|
|||||||
$matches = array();
|
$matches = array();
|
||||||
preg_match("#(memcache)://(.*)#", $cache, $matches);
|
preg_match("#(memcache)://(.*)#", $cache, $matches);
|
||||||
if($matches[1] == "memcache") {
|
if($matches[1] == "memcache") {
|
||||||
$this->cache = new MemCache($matches[2]);
|
$this->cache = new MemcacheCache($matches[2]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user