Replies: 2 comments 1 reply
-
Did you find my suggestion reasonable to implement it? At least for me, it would be useful to prefetch already queried entries in the cache with a negative value in prefetchExpires. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Another good reason to implement the feature I suggested: It does not require storing the cached domains in memory if using Redis. When the DNS lookup is done, just find in the cache the entry of the domain, check if its TTL is lower than the addition of [TTL] + (-prefetchExpires), if it is, do the prefetch. Very simple. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I had an idea for Blocky: Ability to select a negative value in prefetchExpires option.
The use case is to keep the cache updated without having to wait the expiration of a cached DNS query.
Let's suppose I configured Blocky to cache domains for 172800 seconds (2 days); if choosing -86400s (1 day) in prefetchExpires, the prefetch tracking windows would update DNS queries that have received hits in the last 24 hours, or also if the cached domain has a TTL lower than the addition of [TTL] + (-prefetchExpires).
I think this is a good idea.
Beta Was this translation helpful? Give feedback.
All reactions