出于某种原因,我无法让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;
Run Code Online (Sandbox Code Playgroud)