We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afd57be commit ebbebf8Copy full SHA for ebbebf8
src/ghc.ts
@@ -18,7 +18,9 @@ export type GH = ghComponents["schemas"];
18
19
const CACHE_DIR = path.join(process.cwd(), "node_modules/.cache/Comfy-PR");
20
const CACHE_FILE = path.join(CACHE_DIR, "gh-cache.sqlite");
21
-const DEFAULT_TTL = 30 * 60 * 1000; // 30 minutes
+const DEFAULT_TTL = process.env.LOCAL_DEV
22
+ ? 30 * 60 * 1000 // cache 30 minutes when local dev
23
+ : 1 * 60 * 1000; // cache 1 minute in production
24
25
await fs.mkdir(CACHE_DIR, { recursive: true });
26
0 commit comments