질문
Q #10906
AR(액티브레코드) 캐싱은 필수입니까?
dantaek
2013-10-30 09:45:56
ci 초보입니다 흑
$this->db->where('id',$id);
$this->db->get($table);
메뉴얼을 보니 AR은 보통 호출이 완료되면 다음 호출을 위해 리셋이 된다고 하던데
만약 $this->db->where('id',$id); 이 where 문을 유지해서 다음 호출때 그대로 이용하려고 한다면
$this->db->start_cache();
$this->db->where('id',$id);
$this->db->stop_cache();
보통 이렇게 입력을 해주는게 맞는지,재사용성을 위해서라면 캐싱을 필수적인지 궁금합니다.