我需要在用户更改语言时删除缓存,但收到错误消息。
$smarty = new Smarty;
//$smarty->force_compile = true;
$smarty->debugging = true;
$smarty->caching = false;
$smarty->cache_lifetime = 120;
if (isset($_COOKIE['country']))
{
$country = $_COOKIE['country'];
$language = "eng";
if ($country == "NO"){
$language = "nor";
$smarty->clear_all_cache();
}
}
当我使用clear_assign时,我也会收到此消息:
function call 'clear_assign' is unknown or deprecated