How do we invalidate this cache when we change the template?