Hi,
I searched for an hour and I still can’t get the answer…
Maybe I used some wrong keyword.
Could somebody tell me what happened and howto solve it.
Thank you
Hi,
I searched for an hour and I still can’t get the answer…
Maybe I used some wrong keyword.
Could somebody tell me what happened and howto solve it.
Thank you
Is caching enabled in your browser?
I don’t think so
I already put these in to my html herder
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="0" />
A little bit more details would be necessary to answer your question.
Try to make sure, that the Webserver has no caching enabled.
Maybe I better show my app here
http://datacg.com/yii/OHS/admin/search/keyword/phone
Remember one time that displayed at web trace log
Go to page 2 by clicking the pager
At page 2, go to page 1 by clicking the pager
You could see that the time displayed at web trace log are same as before
Sorry to push this topic back to top.
The problem still here…
When I save an AR to database and redirect the page, works fine, the page is up to date
But when I set the redirect to off, and I click the link that exactly same as about and the page was viewed before, I got old data on the page, but when I refresh…new data comes out.
I have conducted an other test
The page only printout time() and a link to this page.
I just go to this page once by type in URL
Then I click the link, go to the same page
In normal, time stamp should be different
But I got the same time stamp…
Who can help me…
I am sure I am not using yii provided cache functions and my apc.cache_by_default is set to Off too.
PS. My English not good, it might have grammatical mistake, SORRY
Finally…I know what was happened…
I should put these into my php.
Not the HTML code:-(
header("Expires: Tue, 03 Jul 2001 06:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");