Super Simple Page Cache with PHP

Here is a super simple way serve up a cached version of your HTML. [php] <?php // define the path and name of cached file $cachefile = ‘cached-files/’.date(‘M-d-Y’).’.php’; // define how long we want to keep the file in seconds. I set mine to 5 hours. $cachetime = 18000; // …