CodeIgniter-MY_Model icon indicating copy to clipboard operation
CodeIgniter-MY_Model copied to clipboard

Cache does not work with related items

Open louiswalch opened this issue 9 years ago • 0 comments

For the following query:

$categories_nested = $this->category_model->set_cache('all_with_children')->with('children')->where('parent_id', 0)->get_all();

The initial (uncached) call works fine. Subsequent calls return the 'children' data only, not parent.

louiswalch avatar Apr 05 '16 01:04 louiswalch