โค้ด: เลือกทั้งหมด
if (($cache_data = $this->cache->get('_cache_data_')) === false) {
// .. Code ..
// .. $rowset ข้อมูลที่จะใส่ แคช
$this->cache->put('_cache_data_' , $rowset, 86400);
$this->cache->put('_cache_topic_id_' , $topic_tag_id, 86400);
}
} else {
$rowset = $cache_data;
$topic_tag_id = $this->cache->get('_cache_topic_id_');
}
โค้ด: เลือกทั้งหมด
$cache_data = $this->cache->get('_cache_data_')) === false
โค้ด: เลือกทั้งหมด
$this->cache->put('_cache_data_' , $rowset, 86400);
โค้ด: เลือกทั้งหมด
// $this->cache->get();
$topic_tag_id = $this->cache->get('_cache_topic_id_');