update cache when label changes