update opened item cache when replacing an item