diff --git a/changelog/unreleased/kong/fix-db_resurrect_ttl.yml b/changelog/unreleased/kong/fix-db_resurrect_ttl.yml new file mode 100644 index 00000000000..44715db1bb9 --- /dev/null +++ b/changelog/unreleased/kong/fix-db_resurrect_ttl.yml @@ -0,0 +1,3 @@ +message: "Fixed an issue where the `db_resurrect_ttl` configuration does not take effect." +type: bugfix +scope: Configuration diff --git a/kong/global.lua b/kong/global.lua index a67e612ff0c..8b6c479d86a 100644 --- a/kong/global.lua +++ b/kong/global.lua @@ -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, @@ -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,