// Here is an example on how to use the buffer/cache class
// combination I've created.
// Create an output buffer
$BUFF = new CBuffer;
// Create a cache object.
$tmpDir = "/tmp/cache/";
$CACHE = new CCache($tmpDir);
// Cache should expire in an hour.
$CACHE->expire = 3600;
// If the file is cached, just print it. Otherwise, go on with the
// rest of the program.
if ($cached = $CACHE->retrieve())
This is where your page will operate. Notice that
you can easily use the cache in a header/footer
combination, perhaps through auto_prepend_file/
auto_append_file or maybe a couple of functions.
// Get the latest contents of the output buffer.
// Print the buffer.
// Finally, cache the output we've calculated.