Clear cache after rebuilding.

This commit is contained in:
CalDescent 2023-02-02 18:11:56 +01:00
parent 64d8353629
commit d27316eb64

View File

@ -60,6 +60,7 @@ public class BlockArchiveRebuilder {
// Delete existing archive and move the newly built one into its place
FileUtils.deleteDirectory(originalArchivePath.toFile());
FileUtils.moveDirectory(newArchivePath.toFile(), originalArchivePath.toFile());
BlockArchiveReader.getInstance().invalidateFileListCache();
LOGGER.info("Block archive successfully rebuilt");
return;
}