forked from Qortal/qortal
Clear cache after rebuilding.
This commit is contained in:
parent
64d8353629
commit
d27316eb64
@ -60,6 +60,7 @@ public class BlockArchiveRebuilder {
|
|||||||
// Delete existing archive and move the newly built one into its place
|
// Delete existing archive and move the newly built one into its place
|
||||||
FileUtils.deleteDirectory(originalArchivePath.toFile());
|
FileUtils.deleteDirectory(originalArchivePath.toFile());
|
||||||
FileUtils.moveDirectory(newArchivePath.toFile(), originalArchivePath.toFile());
|
FileUtils.moveDirectory(newArchivePath.toFile(), originalArchivePath.toFile());
|
||||||
|
BlockArchiveReader.getInstance().invalidateFileListCache();
|
||||||
LOGGER.info("Block archive successfully rebuilt");
|
LOGGER.info("Block archive successfully rebuilt");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user