false, 'debug_header' => false, 'lifetime' => 3600 * 24, // cache lifetime of 1 hour x 24 = 1 day 'default_options' => array( 'tags' => array('program', 'all'), //program, fad, all ) ); $backendOptions = array( 'cache_dir' => '/services/web/inetroot/healthsciencesroot/cache' ); $cache = Zend_Cache::factory( 'Page', 'File', $frontendOptions, $backendOptions ); // remove the string for cache cleaning from the request otherwise the URI will never match $remove = array("&resetcache=1", "?resetcache=1"); $requesturl = str_replace($remove, "", $_SERVER['REQUEST_URI']) ; //create an id based on the uri $cache_identifier = md5($requesturl); if( isset($_GET["resetcache"]) ){ $cache->remove($cache_identifier); } if (!($cache->start($cache_identifier))) { //echo 'This is cached at ('.time().')'; } } // end if doCache ?> Adjunct Faculty Information University of Utah - Health Sciences - Salt Lake City, Utah