Welcome Guest, Not a member yet? Register   Sign In
My page caches
#1

[eluser]Theis[/eluser]
Hi everyone.
I a'm currently working on a page made in CodeIgniter.
If i for instance do a change in my view or controller, then there will go 10 minutes before the changes is visible.
I have not manually turned cache on.

I believe caused byCodeIgniter, since there is no caching problem if I make a regular html or php file. However here is my php info: http://shafh.dk/test.php

Does any have a idea what is wrong. It really makes my work much more hard to work on.
Thanks for your help.
#2

[eluser]Jan_1[/eluser]
Did you try different browsers in the same situation?
#3

[eluser]Theis[/eluser]
Yes, i have tried in Chromium, Firefox and Opera. But no difference.
However I dont believe it is the browser who caches, because, if I do changes in the database, then the changes instant is visible on the page...
#4

[eluser]TheFuzzy0ne[/eluser]
You should still definitely try clearing your cache the next time you have this problem, to see if it makes any difference. It could be something to do with the headers that are being sent with the request.
#5

[eluser]Theis[/eluser]
I have done that.

In my controllers constructor i have:

Quote: $this->output->set_header("HTTP/1.0 200 OK");
$this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate");
$this->output->set_header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
$this->output->set_header("Cache-Control: post-check=0, pre-check=0");
$this->output->set_header("Pragma: no-cache");
$this->output->cache(0);
#6

[eluser]TheFuzzy0ne[/eluser]
I actually meant clearing your browser cache. If those pages are cached, then the browser won't get the page from the server, and won't get those headers.

Is it working now? You didn't say.

Also, you might find that this:
Code:
$this->output->set_header(“HTTP/1.0 200 OK”);

messes things up. If you need to send a 404, I don't think you'll be able to.




Theme © iAndrew 2016 - Forum software by © MyBB