Welcome Guest, Not a member yet? Register   Sign In
Caching of dynamic pages - or any pages for that matter
#4

[eluser]autefrum[/eluser]
Where do you think is the best place to put this code:

Code:
$this->output->set_header('Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT');
$this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate");
$this->output->set_header("Cache-Control: post-check=0, pre-check=0");
$this->output->set_header("Pragma: no-cache");

I am trying out putting it in the
Code:
function __construct() {
of my controller that
Code:
extends CI_Controller
.

Is there a better place if I don't want to cache ANY of the views loaded by that controller? That controller's model is a fairly dynamic database, and my server can cope with the load of refreshing the views.


Messages In This Thread
Caching of dynamic pages - or any pages for that matter - by El Forum - 07-04-2013, 04:10 AM
Caching of dynamic pages - or any pages for that matter - by El Forum - 07-04-2013, 03:43 PM
Caching of dynamic pages - or any pages for that matter - by El Forum - 07-08-2013, 04:34 AM
Caching of dynamic pages - or any pages for that matter - by El Forum - 07-22-2013, 06:14 PM
Caching of dynamic pages - or any pages for that matter - by El Forum - 07-23-2013, 01:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB