Cache_Lite_Output::end() -- Stop the output buffering started by the start() method and store
the output to a cache file
Описание
Stop the output buffering started by the start() method and store
the output to a cache file
Заметка
Эта функция не должна вызываться статически.
Пример
Пример 31-1. Usage <?php
require_once "Cache/Lite/Output.php";
$options = array(
'cacheDir' => '/tmp/',
'lifeTime' => 7200,
'pearErrorMode' => CACHE_LITE_ERROR_DIE
);
$cache = Cache_Lite_Output($options);
if (!($cache->start('id_of_the_page'))) {
// Cache not hit !
// All the output is bufferised until the end() method
// (...)
$cache->end(); // the bufferised output is now stored into a cache file
}
?> |
|
HIVE: All information for read only. Please respect copyright! |
|