skip to Main Content

Memcached – Can't caching object in codeigniter

I have this following code in the Address controller public function index() { if($this->session->userdata('isLogin')) { $this->load->driver('cache'); $this->load->model('MemberModel'); if(!$this->cache->get('province') == false) { $this->load->model('ShippingModel'); $data['provinces'] = $this->ShippingModel->the_provinces(); // it will return json object $this->cache->save('province', $data['provinces'], 300); } else { $data['provinces'] = $this->cache->get('province');…

VIEW QUESTION
Back To Top
Search