Skip to content

Commit

Permalink
Merge pull request #714 from Cherry/fix/restore-setCacheVersion
Browse files Browse the repository at this point in the history
fix: restore setCacheVersion method
  • Loading branch information
Thiago Saife authored Dec 26, 2023
2 parents 3108d0c + ea549ba commit a938d74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,12 @@ class Storyblok {
return cacheVersions[this.accessToken]
}

public setCacheVersion(cv: number): void {
if (this.accessToken) {
cacheVersions[this.accessToken] = cv
}
}

private cacheProvider(): ICacheProvider {
switch (this.cache.type) {
case 'memory':
Expand Down

0 comments on commit a938d74

Please sign in to comment.