add reindex option to settings and condition reindex on its value

Closes #3410456

Merge request reports

Loading