$this->load->driver('cache', array('adapter' => 'file', 'backup' => 'file'));
if (!$result = $this->cache->get($this->cache_name)) {
$extra_list = $this->get();
if (!$extra_list) {
return false;
}
$return = array();
foreach ($extra_list as $value) {
$return[$value['config_key']] = $value['config_value'];
}
$this->cache->save($this->cache_name, $result, $this->cache_time);
}
return $return;
위 코드로 캐시저장까지는 되는데
IF문 안에 있는 $this->cache->get 에서 자꾸 false가 나오네요..
세팅에는 별다른 문제가 없는 것 같은데.. 어디를 찾아봐야할까요?