Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
// Bench script of Cache_Lite_Output
4
// $Id: bench2.php 97270 2002-09-28 18:05:29Z fab $
5
 
6
require_once('Cache/Lite/Output.php');
7
 
8
$options = array(
9
    'caching' => true,
10
    'cacheDir' => '/tmp/',
11
    'lifeTime' => 10
12
);
13
 
14
$cache = new Cache_Lite_Output($options);
15
 
16
if (!($cache->start('123'))) {
17
    // Cache missed...
18
    for($i=0;$i<1000;$i++) { // Making of the page...
19
        echo('0123456789');
20
    }
21
    $cache->end();
22
}
23
 
24
?>