Skip to content

Commit 6dcc11e

Browse files
fix: Misconfigured cache
The cache system interpreted the "60" setting as "60ms" instead of "60 minutes".
1 parent 195d241 commit 6dcc11e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/Settings.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ import { ReleaseType } from "semver"
22
import { workspace } from "vscode"
33

44
export const getCacheLifetime = () => {
5-
return workspace
6-
.getConfiguration()
7-
.get<number>("npm-outdated.cacheLifetime") as number
5+
return (
6+
Number(
7+
workspace.getConfiguration().get<number>("npm-outdated.cacheLifetime")
8+
) *
9+
60 *
10+
1000
11+
)
812
}
913

1014
export const getLevel = () => {

0 commit comments

Comments
 (0)