Always overwrite existing data when building via the queue.

This fixes a significant bug that was interfering with updates.
This commit is contained in:
CalDescent 2021-11-02 19:34:25 +00:00
parent 16bcba6e2e
commit 6f07dc7852

View File

@ -40,10 +40,8 @@ public class ArbitraryDataBuildQueueItem {
ArbitraryDataReader arbitraryDataReader = ArbitraryDataReader arbitraryDataReader =
new ArbitraryDataReader(this.resourceId, this.resourceIdType, this.service); new ArbitraryDataReader(this.resourceId, this.resourceIdType, this.service);
// We do not want to overwrite the existing cache, as this will be invalidated
// automatically if new data has arrived
try { try {
arbitraryDataReader.loadSynchronously(false); arbitraryDataReader.loadSynchronously(true);
} finally { } finally {
this.buildEndTimestamp = NTP.getTime(); this.buildEndTimestamp = NTP.getTime();
} }