fix: egress cache TTL independent from fetcher cache (24h default)

Egress probe results (IP/country/region/city/isp) were cached using the
fetcher's cache_ttl (300s / 5min). After 5 minutes the cache expired and
the node list showed empty Egress IP/Country/Region fields again.

Add a dedicated egress_cache_ttl config (default 24h) so egress data
persists long enough to be useful when re-expanding the node list.
This commit is contained in:
2026-07-29 17:54:15 +08:00
parent cc38a6f0ba
commit eba9fa1be0
3 changed files with 5 additions and 2 deletions
+1
View File
@@ -25,6 +25,7 @@ fetcher:
max_response_bytes: 2097152 # 2 MiB
max_total_bytes: 12582912 # 12 MiB
proxy_url: "" # e.g. "http://127.0.0.1:7890" for fetching sources behind Cloudflare
egress_cache_ttl: 24h # TTL for egress IP/country/region probe cache
recycle:
max_entries: 50