From 97b3b201f5348c08456b7330ef4a1903bd13716c Mon Sep 17 00:00:00 2001 From: Raphael Mobis Tacla Date: Thu, 5 Mar 2026 11:24:39 -0300 Subject: [PATCH 1/4] randomly purge 10% of links cache helps with retesting past keys in case they go stale --- bin/validate-links.mts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bin/validate-links.mts b/bin/validate-links.mts index fb2549c..99f7590 100644 --- a/bin/validate-links.mts +++ b/bin/validate-links.mts @@ -34,6 +34,18 @@ for await (const cacheFile of cacheWalker) { console.log(`Found ${cachedKeys.size} cached links!`); +// randomly purge 10% of cache so we continuously check part of past links +// this might help us catch any changed links +let purgedKeys = 0; +for (const cachedKey of cachedKeys) { + if (Math.random() < 0.1) { + cachedKeys.delete(cachedKey); + purgedKeys++; + } +} + +console.log(`Randomly purged ${purgedKeys} links from cache!`); + const wikiLinks = new Set(); const imageLinks = new Set(); From 6a48620e62e975ab8f456c91d39dacab8419e9fe Mon Sep 17 00:00:00 2001 From: Raphael Mobis Tacla Date: Thu, 5 Mar 2026 11:25:40 -0300 Subject: [PATCH 2/4] fix facility bottle wiki image --- tiers/medium.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiers/medium.json b/tiers/medium.json index e2d18fd..6b15683 100644 --- a/tiers/medium.json +++ b/tiers/medium.json @@ -2858,7 +2858,7 @@ "name": "Get a Facility bottle", "tip": "Obtained while sorting Large, Plundered, Martial, Fremennik and Opulent salvages.", "wikiLink": "https://oldschool.runescape.wiki/w/Facility_bottle", - "imageLink": "https://oldschool.runescape.wiki/images/thumb/Facility_bottle_detail.png/320px-Facility_bottle_detail.png", + "imageLink": "https://oldschool.runescape.wiki/images/thumb/Facility_bottle_(full)_detail.png/320px-Facility_bottle_(full)_detail.png", "displayItemId": 33077, "verification": { "method": "collection-log", From 2dcc20470060fe9993fb97f7b4329f44b5273eb9 Mon Sep 17 00:00:00 2001 From: Raphael Mobis Tacla Date: Thu, 5 Mar 2026 11:26:06 -0300 Subject: [PATCH 3/4] fix brimhaven -> brighten autocorrect --- tiers/medium.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiers/medium.json b/tiers/medium.json index 6b15683..f97b6eb 100644 --- a/tiers/medium.json +++ b/tiers/medium.json @@ -2514,7 +2514,7 @@ }, { "id": "4e1c007c-8d85-4ddf-b2f8-fc8f80b7f22f", - "name": "Get a Wyrm/Brighten graceful recolor", + "name": "Get a Wyrm/Brimhaven graceful recolor", "tip": "You must recolor your existing graceful, whichever graceful you want to keep do that color last.", "wikiLink": "https://oldschool.runescape.wiki/w/Graceful_outfit", "imageLink": "https://oldschool.runescape.wiki/images/Graceful_crafting_kit_detail.png", From 4b5aa28bd185969fa4f16c34c3188637791b25c6 Mon Sep 17 00:00:00 2001 From: Raphael Mobis Tacla Date: Thu, 5 Mar 2026 11:28:29 -0300 Subject: [PATCH 4/4] increase cache purging ratio to 20% --- bin/validate-links.mts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/validate-links.mts b/bin/validate-links.mts index 99f7590..0249805 100644 --- a/bin/validate-links.mts +++ b/bin/validate-links.mts @@ -38,7 +38,7 @@ console.log(`Found ${cachedKeys.size} cached links!`); // this might help us catch any changed links let purgedKeys = 0; for (const cachedKey of cachedKeys) { - if (Math.random() < 0.1) { + if (Math.random() < 0.2) { cachedKeys.delete(cachedKey); purgedKeys++; }