From ddf24378852645e1b65cff11ff13bdd13b319a19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathis=20Dr=C3=B6ge?= Date: Wed, 31 Jan 2024 23:43:19 +0100 Subject: [PATCH] Bump up the max cache time to 30 days 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) --- src/backend/utils/systeminfo/gpu/pci_ids.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/utils/systeminfo/gpu/pci_ids.ts b/src/backend/utils/systeminfo/gpu/pci_ids.ts index 366056459b..b1c5e7c3eb 100644 --- a/src/backend/utils/systeminfo/gpu/pci_ids.ts +++ b/src/backend/utils/systeminfo/gpu/pci_ids.ts @@ -33,7 +33,7 @@ async function getPicIds(): Promise { 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