philas 0 Newbie Poster

i'm use smarty 3 and write

$smarty = new Smarty();
$smarty->config_dir='./smarty/sconfigs/';
$smarty->template_dir='./templates/new/';
$smarty->compile_dir='./smarty/stemplates_c/';
$smarty->cache_dir='./smarty/scache/';

if(!$smarty->isCached('index.tpl','default')) {
   $smarty->assign("u",refresh_user_info(),true);    
}        
$smarty->display('index.tpl','default');

but {$u} is missing when i add if($smarty->isCached

help please!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.