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

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Cache_Lite_Output::end

Cache_Lite_Output::end() – Stoppe la bufferisation de la sortie, démarrer par la méthode start() et stocke la sortie dans un fichier de cache

Synopsis

require_once 'Cache/Lite/Output.php';

void Cache_Lite_Output::end ( )

Description

Stoppe la bufferisation de la sortie, démarrée par la méthode start() et stocke la sortie dans un fichier de cache.

Note

This function can not be called statically.

Example

Utilisation

<?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_de_la_page'))) {

    
// Cache n'est pas présent !
    // Toute la sortie est bufferisée en attendant la méthode end()
    // (...)
    
    
$cache->end(); // la bufferisation de sortie est maintenant stockée dans un fichier de cache

}

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

Download Documentation Last updated: Sun, 18 Oct 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.