Hi, I'm brand new to PHP. I have a website, and having trouble with cached pages.. I was hoping there was a way to make the content expire everytime the site is accessed so there is no more cached pages? Thanks, --Danial
Two things. First, go here :
http://www.php.net/manual/function.header.php
Pay close attention to the user comments too, a lot is discussed about cache and the infamous "expire" issue.
Later when you feel a little more brave, go here :
http://www.mnot.net/cache_docs/
Well, to sum it up, do the following at the beginning of your scripts to prevent caching :
header("Cache-control: no-cache"); header("Pragma: no-cache");