Skip to content

Commit

Permalink
feat(datasource/npm): default cacheHardTtlMinutes to 24 hours (#20079)
Browse files Browse the repository at this point in the history
Renovate will now use "soft" expiry of npm datasource lookups, combined with a hard expiry of 24 hours. Soft expired results are used to improve
performance plus can be reused in case npmjs errors on subsequent lookups
  • Loading branch information
rarkins committed Mar 10, 2023
1 parent 40e7149 commit 0b6706c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/config/options/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2258,9 +2258,8 @@ const options: RenovateOptions[] = [
'Maximum duration in minutes to keep datasource cache entries.',
type: 'integer',
stage: 'repository',
default: 0,
default: 24 * 60,
globalOnly: true,
experimental: true,
},
{
name: 'prBodyDefinitions',
Expand Down

0 comments on commit 0b6706c

Please sign in to comment.