Add template's cache support