| 제목 | cache->get 못불러오는 문제.. | ||
|---|---|---|---|
| 글쓴이 | 아이와사 | 작성시각 | 2016/08/12 09:37:16 | 
|  | |||
| 
$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가 나오네요.. 세팅에는 별다른 문제가 없는 것 같은데.. 어디를 찾아봐야할까요? | |||
| 다음글 | 폼검증에서 비밀번호 matches 가 잘안돼서... (1) | ||
| 이전글 | where문 or 질문드리겠습니다. (3) | ||
| 
                                아이와사
                                /
                                2016/08/12 10:01:30 /
                                추천
                                0
                             
                                허허허허.....result , return....오타로 해결했습니다....
                             |