• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Codeigniter - cache only part of the view

#2
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.
Reply


Messages In This Thread
RE: Codeigniter - cache only part of the view - by henry_miaomiao - 12-13-2015, 03:04 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.