/usr/share/doc/php-cache-lite/tests/bench2.php is in php-cache-lite 1.7.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <?php
// Bench script of Cache_Lite_Output
// $Id: bench2.php,v 1.4 2002/09/28 18:05:29 fab Exp $
require_once('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();
}
?>
|