Codeigniter - cache only part of the view |
The best solution could be:
$data['header'] = $this->load->view('header', $data, true, 250); // 250 are minutes cache $data['footer'] = $this->load->view('footer', $data, true, 60); // 60 are minutes cache $data['user'] = $this->load->view('menu_user', $data, true); $this->load->view('home_page',$data); This would be an important feature for next version of CI. |
Messages In This Thread |
Codeigniter - cache only part of the view - by henry_miaomiao - 12-12-2015, 07:01 AM
RE: Codeigniter - cache only part of the view - by henry_miaomiao - 12-13-2015, 03:04 AM
RE: Codeigniter - cache only part of the view - by PaulD - 12-13-2015, 02:21 PM
RE: Codeigniter - cache only part of the view - by cartalot - 12-13-2015, 09:53 PM
RE: Codeigniter - cache only part of the view - by Martin7483 - 12-14-2015, 03:58 AM
RE: Codeigniter - cache only part of the view - by henry_miaomiao - 12-14-2015, 09:17 AM
|