Skip to content

Commit

Permalink
fix(config): correct option name for kong_cache
Browse files Browse the repository at this point in the history
`kong_config.resurrect_ttl` is a invalid value, actually it should be
`kong_config.db_resurrect_ttl`
  • Loading branch information
ms2008 committed Jan 16, 2025
1 parent 665eaad commit ff04b9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelog/unreleased/kong/fix-db_resurrect_ttl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
message: "Fixed an issue where the `db_resurrect_ttl` configuration does not take effect."
type: bugfix
scope: Configuration
4 changes: 2 additions & 2 deletions kong/global.lua
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ function _GLOBAL.init_cache(kong_config, cluster_events, worker_events)
worker_events = worker_events,
ttl = db_cache_ttl,
neg_ttl = db_cache_neg_ttl or db_cache_ttl,
resurrect_ttl = kong_config.resurrect_ttl,
resurrect_ttl = kong_config.db_resurrect_ttl,
page = page,
cache_pages = cache_pages,
resty_lock_opts = LOCK_OPTS,
Expand All @@ -288,7 +288,7 @@ function _GLOBAL.init_core_cache(kong_config, cluster_events, worker_events)
worker_events = worker_events,
ttl = db_cache_ttl,
neg_ttl = db_cache_neg_ttl or db_cache_ttl,
resurrect_ttl = kong_config.resurrect_ttl,
resurrect_ttl = kong_config.db_resurrect_ttl,
page = page,
cache_pages = cache_pages,
resty_lock_opts = LOCK_OPTS,
Expand Down

0 comments on commit ff04b9c

Please sign in to comment.