Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Sites Using Smarty

Advertisement

Name

clearAllCache() — 全てのテンプレートのキャッシュをクリアします。

説明

void clearAllCache(int expire_time);

任意のパラメータとして、キャッシュファイルを削除する前にそのファイルが存在しなくてはならない 最低限の時間(秒)を与える事が出来ます。

Example 13.6. clearAllCache


<?php
// キャッシュ全体をクリアします
$smarty->clearAllCache();

// 一時間以上経過しているファイルをすべてクリアします
$smarty->clearAllCache(3600);
?>

   

clearCache()isCached() および キャッシュ のページも参照してください。