Ejemplo n.º 1
0
 /**
  * @param string $root
  * @param int $lifetime
  * @param string $key
  */
 static function initCache($root, $key, $lifetime = 3600)
 {
     self::$cache = new Naf_Cache($root, $key, $lifetime);
     if (self::$cache->start()) {
         echo microtime(true) - self::$response->timerStart;
         exit;
     }
 }