Welcome Guest, Not a member yet? Register   Sign In
how to partially caching or caching a specific view?
#1

[eluser]Unknown[/eluser]
you see, I need to only caching the body and the footer, head is the one that I don't want it to be cached.

Code:
#if I do cache here, it will be all cached.
#$this->output->cache(1);
$this->load->view('head', $data);
$this->load->view('body', $data);
$this->load->view('footer');

any good solution?
#2

[eluser]Otemu[/eluser]
Your need a library to achieve this, check out https://github.com/philsturgeon/codeigniter-cache





Theme © iAndrew 2016 - Forum software by © MyBB