Template caching update

Signed-off-by: Euan T <euantorano@gmail.com>