HTML部分
{nocache}
{**some process**}
{/nocache}
nocache就是自定义block实现区块内数据的控制
function smarty_block_nocache($param, $content, $smarty)
{
return $content;
}
$smarty->register_block('nocache', 'smarty_block_nocache', false);
register_block
void register_block
(string name, mixed impl, bool cacheable, array or null cache_attrs);