Forum Moderators: coopster
I'm including this page in several places on my site via iframe but it is independent from the sites cms and is a good candidate for individual caching.
The problem is that traffic is launching this page a lot of times every minute so the 30 calls per pageload is resulting in a LOT of affiliate server calls, too many.
I'd like to cache the page so that it is loaded just once per hour and a cached copy is served the rest of the time.
Is there some simple code I can place in the header of this page to generate this hourly cache function?
I'm looking for as SIMPLE as possible, I'm not interested in installing large scripts etc..etc. Ideally I can have all of the cache related code added to that single page.
How ?
Something like this maybe:
header('Cache-Control: max-age=3600');
header('Expires: '.gmdate('D, d M Y H:i:s', time()+3600).' GMT');