TimeTrex Community Edition v16.2.0
This commit is contained in:
24
vendor/pear/cache_lite/tests/bench2.php
vendored
Normal file
24
vendor/pear/cache_lite/tests/bench2.php
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
// Bench script of Cache_Lite_Output
|
||||
// $Id$
|
||||
|
||||
require_once __DIR__ . '/../Cache/Lite/Output.php';
|
||||
|
||||
$options = array(
|
||||
'caching' => true,
|
||||
'cacheDir' => '/tmp/',
|
||||
'lifeTime' => 10
|
||||
);
|
||||
|
||||
$cache = new Cache_Lite_Output($options);
|
||||
|
||||
if (!($cache->start('123'))) {
|
||||
// Cache missed...
|
||||
for($i=0;$i<1000;$i++) { // Making of the page...
|
||||
echo('0123456789');
|
||||
}
|
||||
$cache->end();
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user