• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Browser Cache in Code Igniter - Localhost and Live is not same

#1
[eluser]heavyman1[/eluser]
Hi Everyone.

Code:
$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?

Thanks


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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