Skip to content

Commit f29a612

Browse files
committed
remove hash from layer key
1 parent 90524ad commit f29a612

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/LayerCache.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,12 @@ class LayerCache {
226226
}
227227

228228
genSingleLayerStoreKey(id: string) {
229-
return `layer-${this.getFormattedOriginalCacheKey()}-${id}`
229+
return `layer-${this.getFormattedOriginalCacheKey(id)}`
230230
}
231231

232-
getFormattedOriginalCacheKey() {
232+
getFormattedOriginalCacheKey(hash?: string) {
233233
return format(this.originalKeyThatMayUnformatted, {
234-
hash: this.getIdhashesPathFriendly()
234+
hash: hash !== undefined ? hash : this.getIdhashesPathFriendly()
235235
})
236236
}
237237

0 commit comments

Comments
 (0)