Skip to content

Commit

Permalink
fix(cache): cache checksum for config and flush cache if the config c…
Browse files Browse the repository at this point in the history
…hanged
  • Loading branch information
wessberg committed Oct 23, 2020
1 parent a5e818e commit ba8591e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ export class CacheRegistryService implements ICacheRegistryService {

// Update the disk cache
await this.updatePackageVersionMap(libraryToVersionMap.entries());
await this.updateCachedPolyfillConfigChecksumPackageVersionMap();
}

/**
Expand Down Expand Up @@ -214,7 +215,7 @@ export class CacheRegistryService implements ICacheRegistryService {
return buffer != null ? buffer.toString("utf8") : undefined;
}

async updateCachedPolyfillConfigChecksumPackageVersionMap(): Promise<void> {
private async updateCachedPolyfillConfigChecksumPackageVersionMap(): Promise<void> {
await this.fileSaver.save(constant.path.configChecksum, getPolyfillConfigChecksum());
}

Expand Down

0 comments on commit ba8591e

Please sign in to comment.