The index_data_map was not cleared when clearing a cache, so this would just append the new correct data to the end of the array instead of overwriting it, which would cause us to then use outdated indices.
make format