From 555a305acb2f7c99f46aa287b4f9ecd7ff2eece9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Garc=C3=ADa=20Cota?= Date: Mon, 28 May 2018 17:11:11 +0200 Subject: [PATCH] chore(config) set default db_cache_ttl to 0 --- kong.conf.default | 6 +++--- kong/templates/kong_defaults.lua | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kong.conf.default b/kong.conf.default index e8a0c3aa1870..d5a69f08510f 100644 --- a/kong.conf.default +++ b/kong.conf.default @@ -418,12 +418,12 @@ # servers should suffer no such delays, and # this value can be safely set to 0. -#db_cache_ttl = 3600 # Time-to-live (in seconds) of an entity from +#db_cache_ttl = 0 # Time-to-live (in seconds) of an entity from # the datastore when cached by this node. # Database misses (no entity) are also cached # according to this setting. - # If set to 0, such cached entities/misses - # never expire. + # If set to 0 (default), such cached entities + # or misses never expire. #------------------------------------------------------------------------------ # DNS RESOLVER diff --git a/kong/templates/kong_defaults.lua b/kong/templates/kong_defaults.lua index 8599a4b627c4..3f929218e185 100644 --- a/kong/templates/kong_defaults.lua +++ b/kong/templates/kong_defaults.lua @@ -59,7 +59,7 @@ cassandra_schema_consensus_timeout = 10000 db_update_frequency = 5 db_update_propagation = 0 -db_cache_ttl = 3600 +db_cache_ttl = 0 dns_resolver = NONE dns_hostsfile = /etc/hosts