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

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

Cache_Lite_Output::end

Cache_Lite_Output::end() – start() メソッドで開始された出力バッファリングを停止し、出力をキャッシュファイルに保存する

Synopsis

require_once 'Cache/Lite/Output.php';

void Cache_Lite_Output::end ( )

Description

start() メソッドで開始された出力バッファリングを停止し、出力をキャッシュファイルに保存します。

Note

This function can not be called statically.

Example

使用法

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

    
// キャッシュがヒットしなかった !
    // 全ての出力は end() メソッドまでバッファされる
    // (...)

    
$cache->end(); // バッファされた出力がキャッシュファイルに保存される

}

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

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