开发者

database updates not showing up immediately

开发者 https://www.devze.com 2023-01-04 12:28 出处:网络
i have a php application driven by mysql data. ie. when a user rates on a product .it gets stored in DB andthe page gets refreshed. then also his ratings donot get showed up until cache is cleared. i

i have a php application driven by mysql data. ie. when a user rates on a product .it gets stored in DB and the page gets refreshed. then also his ratings donot get showed up until cache is cleared. i have put the cache control code also .

header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
开发者_Python百科header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past

any tweaks that i have to do for this?


Try

SELECT SQL_NO_CACHE * FROM table
0

精彩评论

暂无评论...
验证码 换一张
取 消