[FIX] Use Memcached wrapper on Windows

This commit is contained in:
headz 2013-12-16 13:57:49 -05:00
parent f00b30d0e2
commit 132c497d89

View File

@ -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();
} }
} }