templates_d and cache