add clearing of template cache on reset()