add new cache when template switched