summaryrefslogtreecommitdiff
path: root/src/couch/src/couch_sup.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/couch/src/couch_sup.erl')
-rw-r--r--src/couch/src/couch_sup.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/couch/src/couch_sup.erl b/src/couch/src/couch_sup.erl
index d58286e57..f48cc93fb 100644
--- a/src/couch/src/couch_sup.erl
+++ b/src/couch/src/couch_sup.erl
@@ -44,10 +44,11 @@ start_link() ->
init(_Args) ->
+ TTL = config:get_integer("couchdb", "couch_file_ttl", 1000),
CacheArgs = #{
strategy => lru,
segment_num => 3,
- ttl => {milliseconds, 1000}
+ ttl => {milliseconds, TTL}
},
couch_log:info("Starting ~s", [?MODULE]),
{ok, {{one_for_one,10, 60}, [