cache new templates properly