Skip to content

Commit

Permalink
Fix the issue where data is written incorrectly after being deleted a…
Browse files Browse the repository at this point in the history
…nd recreated in cache mode.
  • Loading branch information
yoozo committed Nov 19, 2024
1 parent a77b6ec commit b84f8c6
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,6 @@ export class CachedModel<T extends BaseEntity = BaseEntity>
// Experimental, this means getCache keeps duplicate data from setCache,
// we can remove this once memory is too full.
this.getCache.set(id, copiedData);
// Handle remove cache, when removed data been created again
if (this.removeCache[id] && this.removeCache[id].removedAtBlock === blockHeight) {
delete this.removeCache[id];
}
this.flushableRecordCounter += 1;
}

Expand Down

0 comments on commit b84f8c6

Please sign in to comment.