summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDamien F. Katz <damien@apache.org>2010-06-23 19:11:50 +0000
committerDamien F. Katz <damien@apache.org>2010-06-23 19:11:50 +0000
commitfeb18bd6efc40126bdb4af390419223e10ef134d (patch)
tree0833e401ab28327acf5f377bb929fe8d351502c8 /etc
parent918f8bf54a4aeffc3c0ef4ad1fa31ce93bbc1346 (diff)
Authentication caching, to avoid repeated opening and closing of the users database for each request requiring authentication. COUCHDB-807
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@957314 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'etc')
-rw-r--r--etc/couchdb/default.ini.tpl.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/couchdb/default.ini.tpl.in b/etc/couchdb/default.ini.tpl.in
index a4bf96f2..7b9ac37c 100644
--- a/etc/couchdb/default.ini.tpl.in
+++ b/etc/couchdb/default.ini.tpl.in
@@ -31,6 +31,7 @@ include_sasl = true
authentication_db = _users
require_valid_user = false
timeout = 600 ; number of seconds before automatic logout
+auth_cache_size = 50 ; size is number of cache entries
[query_servers]
javascript = %bindir%/%couchjs_command_name% %localbuilddatadir%/server/main.js
@@ -55,6 +56,7 @@ httpd={couch_httpd, start_link, []}
stats_aggregator={couch_stats_aggregator, start, []}
stats_collector={couch_stats_collector, start, []}
uuids={couch_uuids, start, []}
+auth_cache={couch_auth_cache, start_link, []}
[httpd_global_handlers]
/ = {couch_httpd_misc_handlers, handle_welcome_req, <<"Welcome">>}