optimize xtemplate by cache
rebuild