PHP caching issue?

I’m still quite new to PHP so this may be a common issue I’m unfamiliar with.

I’ve created a form which includes a PHP file that generates an email. This has always worked fine, never had any issues with updates etc. But today I’ve amended the php file and uploaded it but when a new email is generated it is as though it is using the older php file, the new changes aren’t being displayed. It’s definitely on the server, I’ve checked and I thought it may be a caching issue on the server but I added these headers:
[php] header(“Cache-Control: no-cache, must-revalidate”); // HTTP/1.1
header(“Expires: Sat, 26 Jul 1997 05:00:00 GMT”); // Date in the past[/php]

and still the emails generated are using the older php file.

Any ideas?

I’m new to PHP too, and I’m making a CMS and while trying to figure out how to cache my pages I stumbled across an article that explained a fair bit about it all. (if you’re interested: http://www.sitepoint.com/caching-php-performance/ )

I’ve only read through the first page and a half, but as far as I know, the server doesn’t cache pages unless you specifically tell it to (or devise a system to do it yourself). So maybe it’s your browser caching the page? Try clicking ctrl+R (which reloads the page, regardless of the cache, on most browsers) and seeing if it works :wink:

Good luck :slight_smile:

Sponsor our Newsletter | Privacy Policy | Terms of Service