[FIX] Use Memcached wrapper on Windows
This commit is contained in:
parent
f00b30d0e2
commit
132c497d89
@ -18,6 +18,9 @@ class StatsCache {
|
|||||||
if (! $config['memcache']['enabled'] ) {
|
if (! $config['memcache']['enabled'] ) {
|
||||||
$this->debug->append("Not storing any values in memcache");
|
$this->debug->append("Not storing any values in memcache");
|
||||||
} else {
|
} else {
|
||||||
|
if (PHP_OS == 'WINNT') {
|
||||||
|
require_once(CLASS_DIR . '/memcached.class.php');
|
||||||
|
}
|
||||||
$this->cache = new Memcached();
|
$this->cache = new Memcached();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user