isEnable = false; } public function getCache($key) { $key = md5($key); if($this->isEnable){ $yac = new Yac(); return $yac->get($key); }else{ echo "yac is not enable ,skip getCache"; } } public function setCache($key,$var) { $key = md5($key); if($this->isEnable){ $yac = new Yac(); $yac->set($key, $var); }else{ echo "yac is not enable ,skip setCache"; } } } ?>