// This line activates the cache functions
require_once('/var/www/php/cache_begin.php');
// Followed by the original script
?>
Sleeping 2 seconds (if this is not cached)...
sleep(2) ?>
Done.
// This line does the post-processing of the page (saves the output to a cache-file, etc.)
require_once('/var/www/php/cache_end.php');
?>