clear_all_cache

clear_all_cache -- 

void clear_all_cache ( [int expire_time])

This clears the entire template cache. As an optional parameter, you can supply a minimum age in seconds the cache files must be before they will get cleared.

此函式在清除整個樣版快取。你也可以使用一個非必要的參數,此時這個參數的意義 為以秒為單位的最小時間,當快取檔案先於這個時間的話則會被清除。

Example 13-1. clear_all_cache

<?php
// clear the entire cache
$smarty->clear_all_cache();
?>