由于某些原因,我无法让Smarty停止缓存模板,在开发过程中修改模板时非常烦人。有人能告诉我在禁用所有缓存方面出了什么问题吗?
$smarty = new Smarty();
$smarty->template_dir = SMARTY_PATH."/templates";
$smarty->compile_dir = SMARTY_PATH."/templates_c";
$smarty->cache_dir = SMARTY_PATH."/cache";
$smarty->config_dir = SMARTY_PATH."/configs";
$smarty->cache_lifetime = 1;
$smarty->caching = 0;