Welcome Guest, Not a member yet? Register   Sign In
Query results and sessions seem to be cahced and not up to date!
#1

[eluser]behnampmdg3[/eluser]
Hello;

Sometimes when I run a query I can't see the updated database results uless I clear the cache! Same with some sessions!

How is the cache happening? Is it even cache or something else?

Thank you
#2

[eluser]Aken[/eluser]
Have you implemented any cache logic anywhere, such as in your script, an .htaccess file, your server config?

Browsers are designed to hold a cache for as long as they're told. You might not always get immediate results if your browser has cached the page. That's the point, and a small downside. You can force a browser to always refresh your page, but it's not a great idea.
#3

[eluser]behnampmdg3[/eluser]
[quote author="Aken" date="1359682774"]Have you implemented any cache logic anywhere, such as in your script, an .htaccess file, your server config?

Browsers are designed to hold a cache for as long as they're told. You might not always get immediate results if your browser has cached the page. That's the point, and a small downside. You can force a browser to always refresh your page, but it's not a great idea.[/quote]Cache for images makes sense but for session data and query results wouldnt be a good idea! We need fresh results dont we?




Theme © iAndrew 2016 - Forum software by © MyBB