overwrite template cache functions