Cache templates in index pages.