PHP Classes

File: cache_ex.php

Recommend this page to a friend!
  Classes of Valics Lehel   Fast Template   cache_ex.php   Download  
File: cache_ex.php
Role: Example script
Content type: text/plain
Description: How to use cache function
Class: Fast Template
Updated revision of CDI Fast Template engine
Author: By
Last change: New function included, $ft->setCacheTime();
Date: 18 years ago
Size: 589 bytes


Class file image Download
// $Id: cache_ex.php,v 1.4 2004/12/27 22:34:10 lvalics Exp $
// Cache Example
include "cls_fast_template.php";

$ft = new FastTemplate('./templates');

// CACHE will be used


$data = date("d/m/Y");


// Benchmarking
$start = $ft->utime();
$end = $ft->utime();
$runtime = ($end - $start) * 1000;
// end Benchmarking

$ft->parse("BODY", array("main"));