Skip to content

Commit d2c8b09

Browse files
committed
chore: change update interval from 8 hours to 1 hour
Reduce the default cache duration for auto-upgrade version checks to allow more frequent discovery of new releases. Change-Id: I2c43f44429e528ad92e1d9976b81caafe373777f Co-developed-by: Cursor <noreply@cursor.com>
1 parent df67369 commit d2c8b09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utils/version-checker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export async function checkAndUpgrade(
8080
const {
8181
checkInterval = process.env.UPDATE_CHECK_INTERVAL
8282
? parseInt(process.env.UPDATE_CHECK_INTERVAL, 10) * 1000
83-
: 1000 * 60 * 60 * 8, // 8 hours or from env var (in seconds)
83+
: 1000 * 60 * 60, // 1 hour or from env var (in seconds)
8484
autoUpgrade = true,
8585
silent = false,
8686
verbose = false,
@@ -350,7 +350,7 @@ export async function checkForUpdatesOnly(
350350
try {
351351
const checkInterval = process.env.UPDATE_CHECK_INTERVAL
352352
? parseInt(process.env.UPDATE_CHECK_INTERVAL, 10) * 1000
353-
: 1000 * 60 * 60 * 8; // 8 hours or from env var (in seconds)
353+
: 1000 * 60 * 60; // 1 hour or from env var (in seconds)
354354

355355
if (verbose) {
356356
console.log('🔍 Checking for updates...');

0 commit comments

Comments
 (0)