Skip to content

Commit

Permalink
fix(config): correct option name for kong_cache (#14173)
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 authored Feb 10, 2025
1 parent b1d10c4 commit 04f8094
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

1 comment on commit 04f8094

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Bazel Build

Docker image available kong/kong-dev:04f8094199157a85a07bbac27bc5c09aa2549e11
Artifacts available https://github.com/Kong/kong/actions/runs/13233302197

Please sign in to comment.