public function __construct()
{
$this->prefix = Options::get('private-GUID');
$this->enabled = extension_loaded('memcache');
if ($this->enabled) {
$this->memcache = new Memcache();
$this->memcache->connect(Config::get('memcache_host', 'localhost'), Config::get('memcache_port', 11211));
$this->cache_index = $this->memcache->get('habari:cache:index');
} else {
Session::error(_t("The Memcache PHP module is not loaded - the cache is disabled.", "memcache"), 'memcachecache');
EventLog::log(_t("The Memcache PHP module is not loaded - the cache is disabled.", "memcache"), 'notice', 'cache', 'memcachecache');
}
}