Skip to content

Commit

Permalink
Bump up the max cache time to 30 days
Browse files Browse the repository at this point in the history
Somewhat of a band-aid fix; ideally we'd be smarter about this caching
in the first place (for example only re-downloading if the user's
hardware changed)
  • Loading branch information
CommandMC committed Jan 31, 2024
1 parent 0bb697a commit ddf2437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/utils/systeminfo/gpu/pci_ids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function getPicIds(): Promise<typeof pciIdsMap | null> {
responseType: 'text'
},
writeToFile: path.join(toolsPath, 'pci.ids'),
maxCache: 7 * DAYS
maxCache: 30 * DAYS
}).catch((error) => error as AxiosError)
if (axios.isAxiosError(pciIdsFile)) return null

Expand Down

0 comments on commit ddf2437

Please sign in to comment.