/ Published in: PHP
URL: http://papearmashup.com/caching-dynamic-php-pages-easily
Expand |
Embed | Plain Text
$cacheFile = 'cache/index-cached.html'; $cacheTime = 4 * 60; // Serve the cached file if it is older than $cacheTime include($cacheFile); exit; } // Start the output buffer /* Heres where you put your page content */ // Cache the contents to a file
You need to login to post a comment.
