Update the cached data when an item is updated