<?php
//incluimos la clase cache
include('cache/cache.class.php');
//Creamos instancia de la cache
$cache1 = new cache();
//Con cache por media segundos.
$cache1->iniciar('cache/',1800,false);?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Prueba cache</title>
</head>
<body>
Hora cacheada: <?php echo date("d-m-Y G:i",time()); ?>
</body>
</html>

<?
$cache1
->cerrar();
//Cerramos cache

?>