fixed templates to cache based on configuration option