Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce 'cache-min-negative-ttl' option #1027

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

gthess
Copy link
Member

@gthess gthess commented Mar 12, 2024

This will bound the minimum TTL for negative answers overriding cache-min-ttl, if set, for negative answers.
Setting cache-min-negative-ttl: 1 while cache-min-ttl is also set would allow for upstream negative replies to not be capped while regular replies would be bounded to cache-min-ttl.
Related to #970 and #978.

Copy link
Member

@wcawijngaards wcawijngaards left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code change looks good! The extra option complements the existing options for cache TTLs.

@gthess gthess merged commit 708d522 into master Apr 5, 2024
1 check passed
@gthess gthess deleted the features/cache-min-negative-ttl branch April 5, 2024 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants