From b03218c78bcb28597cb6f98f7350eac1b5171cba Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sun, 7 Apr 2024 17:34:36 +0300 Subject: [PATCH] unbound/cache.conf: add prefetch & prefetch-key --- etc/unbound/unbound.conf.d/cache.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etc/unbound/unbound.conf.d/cache.conf b/etc/unbound/unbound.conf.d/cache.conf index 0e9b6a3c..435a88e2 100644 --- a/etc/unbound/unbound.conf.d/cache.conf +++ b/etc/unbound/unbound.conf.d/cache.conf @@ -15,3 +15,8 @@ server: # minute in the wild, I think 5 mins shouldn't break anything, but bigger # might. cache-min-ttl: 900 + # Update cache for popular items before they expire. ~10 % traffic + # increase according to `man unbound.conf` + prefetch: yes + # Fetch keys when DS is encountered, lower latency for a bit higher CPU use + prefetch-key: yes