代码如下:

require '../libs/Smarty.class.php';
$smarty = new Smarty;
$smarty->clearCache('index.tpl');

Related Posts: smarty 如何理解更新指定模板缓存 :