What is Smarty?
Why use it?
Use Cases and Work Flow
Syntax Comparison
Template Inheritance
Best Practices
Crash Course
You may use the Smarty logo according to the trademark notice.
For sponsorship, advertising, news or other inquiries, contact us at:
clearAllCache() — 全てのテンプレートのキャッシュをクリアします。
void clearAllCache(int expire_time);
任意のパラメータとして、キャッシュファイルを削除する前にそのファイルが存在しなくてはならない 最低限の時間(秒)を与える事が出来ます。
Example 13.6. clearAllCache
<?php // キャッシュ全体をクリアします $smarty->clearAllCache(); // 一時間以上経過しているファイルをすべてクリアします $smarty->clearAllCache(3600); ?>
clearCache()
、
isCached()
および
キャッシュ のページも参照してください。