Caching 如何关闭smarty中的缓存功能
我想关闭smarty中的缓存功能。我已尝试使用以下代码Caching 如何关闭smarty中的缓存功能,caching,smarty,Caching,Smarty,我想关闭smarty中的缓存功能。我已尝试使用以下代码 $smarty->caching = true; $smarty->cache_lifetime = 120; 但是上面的代码不起作用 如何关闭缓存 提前谢谢 如果要关闭它,需要设置: $smart->caching = Smarty::CACHING_OFF; 而不是 $smarty->caching = true; 正如您在smarty 3中的问题所示,$smarty->setCachingSmar
$smarty->caching = true;
$smarty->cache_lifetime = 120;
但是上面的代码不起作用
如何关闭缓存
提前谢谢 如果要关闭它,需要设置:
$smart->caching = Smarty::CACHING_OFF;
而不是
$smarty->caching = true;
正如您在smarty 3中的问题所示,$smarty->setCachingSmarty::CACHING\u OFF;