Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 23498 программистов и 1607 роботов. Сейчас ищут 1315 программистов ...

Cache_Lite_Output::end

Вернуться к: Cache_Lite

Cache_Lite_Output::end

Cache_Lite_Output::end() – Stop the output buffering started by the start() method and store the output to a cache file

Synopsis

require_once 'Cache/Lite/Output.php';

void Cache_Lite_Output::end ( )

Stop the output buffering started by the start() method and store the output to a cache file

Note

This function can not be called statically.

Example

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

}

?>


Вернуться к: Cache_Lite

© 2024 «PHP.RU — Сообщество PHP-Программистов»
Главная | Форум | Реклама на сайте | Контакты VIP Сувениры
Разработка компании ODware