Jump to content

smarty3 caching


philas

Recommended Posts

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!

Link to comment
https://forums.phpfreaks.com/topic/225394-smarty3-caching/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.