From d28763fa01632234d3fce20b9798a667cf45ee6b Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Sat, 28 Jan 2023 11:41:52 +0100
Subject: [PATCH] feat(datasource/npm): default cacheHardTtlMinutes to 24 hours
 (#20079)

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

BREAKING CHANGE: Package cache will include entries for up to 24 hours after the last lookup. Set cacheHardTtlMinutes=0 to revert to existing behavior.
---
 lib/config/options/index.ts | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/config/options/index.ts b/lib/config/options/index.ts
index 9465b24c8f..dc6b4c3339 100644
--- a/lib/config/options/index.ts
+++ b/lib/config/options/index.ts
@@ -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',
-- 
GitLab