03-24-2009, 01:07 PM
[eluser]Unknown[/eluser]
I have a little proposal how to speed up a little codeigniter caching. If I understand caching properly, all the magic starts when I'm calling
But all data generated for showing this view is generated/gathered before this function is called.
Could someone help me writing an extension to check if current site is cached (and not expired) that I could do something like that:
I think that extending Output class could be an issue. But maybe there is such function (or similar) so I don't want to discover a wheel again
Thanks for help.
I have a little proposal how to speed up a little codeigniter caching. If I understand caching properly, all the magic starts when I'm calling
Code:
$this->load->view('some_view');
Could someone help me writing an extension to check if current site is cached (and not expired) that I could do something like that:
Code:
if(cache_expired()) {
//query database \
//do something with data > slowing part
//etc... /
}
$this->load->view('some1_view', $data1);
$this->load->view('some2_view', $data2);
$this->load->view('some3_view', $data3);
I think that extending Output class could be an issue. But maybe there is such function (or similar) so I don't want to discover a wheel again

Thanks for help.