November 12, 201213 yr How can i create a view counter using my mySQL database, that will increase +1 everytime the page is refresed. I've created some, but it dont update the website when i refresh, but just shows a catched version! HELP ME
November 12, 201213 yr You could probably achieve what you're after by clearing the cache. See this thread. This option is heavy on the server and might slow down your website so you may want to consider if you really need to up the counter everytime the page is refreshed.
November 14, 201213 yr The purpose of setting the cache headers is to set an expiry date to force the browser to get the page from the server rather than reloading from cache which the OP was trying to get round. Not an efficient way to do things as I previously noted, but is useful for testing purposes.
Create an account or sign in to comment