template cache working