| 
<?php/**
 * Example of usage of class AutoExpires.
 * @author Rubens Takiguti Ribeiro <rubs33@gmail.com>
 */
 require_once('AutoExpires.class.php');
 
 // Configure to check if cache time was expired (do not check content modification)
 AutoExpires::setCacheTime(10);
 AutoExpires::setStrategies(array('if-expired'));
 
 // Start
 AutoExpires::start();
 
 // Print the document
 echo 'Dynamic content: ' . $_GET['value'];
 exit(0);
 |