previousCache_Lite_Output::start (Previous) (Next) constructor Cache_Lite_Function::
Cache_Lite_Function
next

View this page in Last updated: Tue, 02 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

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 ( )

Description

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

}

?>
previousCache_Lite_Output::start (Previous) (Next) constructor Cache_Lite_Function::
Cache_Lite_Function
next

Download Documentation Last updated: Tue, 02 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.