Location: PHPKode > scripts > Zoocache > marcelklehr-zoocache/test.php
 * As you can see, using Zoocache on your site is very easy:
 * Just include the bootstrap.php file in the /zoocache directory
include 'bootstrap.php';

 * Let's do something that takes really long, so we can see the difference
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<title>Zoocache <?php print ZOOCACHE_VER; ?> - Test page</title>
<style type="text/css">
blockquote{margin-left:0;padding:0.5em;padding-left:2em;border-left:1px dotted #000;background-color:#ff9;}
h1 span{color:#050}
<h1><span>Zoocache</span> Test page</h1>
<blockquote><pre>UNIX timestamp: <?php print time(); ?></pre></blockquote>
<p>If everything is working correctly now, you should see the same digits above after reloading the page. That means it has been cached!<br />
Also try <a href="<?php print $_SERVER['PHP_SELF']; ?>?nocache">?nocache</a>, which is on the caching blacklist. Therefore, when watching that page, you should see the digits change on reload and, by the way, the page should take much longer to load.</p>
<?php if(Zoo\Config::get('debug')){ ?><p><strong>Zoocache is running in debug mode!</strong><br/>It's recommended to turn off debug mode in a production environment, since debug messages can be read by everybody in the HTTP headers.</p><?php } ?>
<p><em>You are running Zoocache/<?php print ZOOCACHE_VER; ?>; driver:<?php print Zoo\Config::get('driver'); ?>; plugins:<?php print json_encode(Zoo\Config::get('plugins')); ?>; debug mode: <?php print (Zoo\Config::get('debug')) ? 'on' : 'off'; ?></em></p>
Return current item: Zoocache