<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body><div>
Here in my tests, prefetch option only works when serve-expired is enabled.</div><table class="d-block user-select-contain"><tbody class="d-block"><tr class="d-block"><td class="d-block comment-body markdown-body js-comment-body"><div dir="auto"><br></div><div>
</div><p dir="auto">Here is one of my configuration files:</p><div>
</div><div class="snippet-clipboard-content notranslate position-relative overflow-auto"><pre class="notranslate"><code class="notranslate">
server:
interface: 127.0.0.1
interface: ::1
port: 53
cache-max-ttl: 21600
cache-min-ttl: 21600
cache-max-negative-ttl: 21600
val-bogus-ttl: 0
infra-host-ttl: 21600
prefetch: yes
serve-expired: yes
serve-expired-ttl: 2592000
delay-close: 10000
chroot: ""
username: "permcache"
directory: ""
pidfile: ""
do-not-query-localhost: no
module-config: "validator cachedb iterator"
cachedb:
backend: redis
# redis-server-host: ::1
# redis-server-port: 6379
redis-server-password: "blah123"
redis-server-path: "/opt/permcache/db/redis-server.sock"
redis-timeout: 5000
forward-zone:
name: "."
forward-addr: ::1@10053
</code></pre></div><div>
</div><p dir="auto">/\ Prefetch works, but the negative and host cache are
cached for 1 month when prefetching is enabled, I would like to set a
very short caching time for them, 1 or 2 days.</p><div dir="auto"><br></div><div>
</div><p dir="auto">Options for controlling the expired host cache and
negative cache separately would be a very good idea, as negative and
host entries would have different TTLs.</p><div dir="auto"><br></div><div>
</div><p dir="auto">The options could be:</p><div dir="auto"><br></div><div>
</div><div class="snippet-clipboard-content notranslate position-relative overflow-auto"><pre class="notranslate"><code class="notranslate">serve-expired-negative-ttl: <seconds>
serve-expired-infra-host-ttl: <seconds>
</code></pre></div><div>
</div></td><div>
</div></tr><div>
</div></tbody><div>
</div></table><div>
</div></body></html>