Skip to content

Commit

Permalink
- Fix that cachedb does not warn when serve-expired is disabled about
Browse files Browse the repository at this point in the history
  use of serve-expired-reply-ttl and serve-expired-client-timeout.
  • Loading branch information
wcawijngaards committed Oct 11, 2023
1 parent d5954af commit f2528dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cachedb/cachedb.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,11 @@ cachedb_init(struct module_env* env, int id)
return 0;
}
cachedb_env->enabled = 1;
if(env->cfg->serve_expired_reply_ttl)
if(env->cfg->serve_expired && env->cfg->serve_expired_reply_ttl)
log_warn(
"cachedb: serve-expired-reply-ttl is set but not working for data "
"originating from the external cache; 0 TLL is used for those.");
if(env->cfg->serve_expired_client_timeout)
"originating from the external cache; 0 TTL is used for those.");
if(env->cfg->serve_expired && env->cfg->serve_expired_client_timeout)
log_warn(
"cachedb: serve-expired-client-timeout is set but not working for "
"data originating from the external cache; expired data are used "
Expand Down
2 changes: 2 additions & 0 deletions doc/Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

11 October 2023: Wouter
- Fix #949: "could not create control compt".
- Fix that cachedb does not warn when serve-expired is disabled about
use of serve-expired-reply-ttl and serve-expired-client-timeout.

10 October 2023: George
- Fix infinite loop when reading multiple lines of input on a broken
Expand Down

0 comments on commit f2528dc

Please sign in to comment.