Welcome Guest, Not a member yet? Register   Sign In
Browser Cache in Code Igniter - Localhost and Live is not same

Hi Everyone.

$result = 'Cleared';
   $this->parser->parse('admin/header.tpl', $content);
   if ($this->sess_valid('am_user_id') >= 1) {
    $this->parser->parse('admin/navigation.tpl', $content);
   } else {
    $this->parser->parse('admin/navigation-none.tpl', $content);
   $this->parser->parse($filename, $content);
   $this->parser->parse('admin/footer.tpl', $content);
   echo $result;

From the code above, you will see that I print a text 'Cleared'.
The problem is, when I use localhost, the text always displayed.
But when I use the live version, the text is not always displayed.
I need to refresh the page each time to make the text 'Cleared' displayed.

This example means, on the live site, CI display page from cache (or something else).
ANd on my localhost, always load ..

Can anyone explain how and how to fix this?


Theme © iAndrew 2016 - Forum software by © MyBB