[eluser]veledrom[/eluser]
Hi,
I wan to cache ONLY one query out out hundreds and my setting are shown below. However no cache file created. Do I miss anything?
Thanks
path
I didn't create one, just using existing 'cache' folder (htaccess and index file in it) under 'application' folder.
database.php
Code:
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = './application/cache/';
function in model
Code:
function return_year(){
$this->load->database();
$this->db->protect_identifiers('year');
$this->db->cache_on();
$data['result'] = $this->db->query('SELECT id FROM year');
}
return $data['result'];