From 296ace81ee4f6d7d405071a91706511d0aa1bc6d Mon Sep 17 00:00:00 2001
From: mschaefers <mschaefers@scoop-gmbh.de>
Date: Mon, 03 Dec 2012 04:21:35 -0500
Subject: [PATCH] cache results of LDAP user synchronization for a configurable amount of time (realm.ldap.ldapCachePeriod = 2 MINUTES)

---
 distrib/gitblit.properties |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/distrib/gitblit.properties b/distrib/gitblit.properties
index a1ec305..76112da 100644
--- a/distrib/gitblit.properties
+++ b/distrib/gitblit.properties
@@ -1057,6 +1057,15 @@
 # SINCE 1.0.0
 realm.ldap.email = email
 
+# Defines the cache period to be used when caching LDAP queries. This is currently
+# only used for LDAP user synchronization.
+#
+# Must be of the form '<long> <TimeUnit>' where <TimeUnit> is one of 'MILLISECONDS', 'SECONDS', 'MINUTES', 'HOURS', 'DAYS' 
+# default: 2 MINUTES
+#
+# RESTART REQUIRED
+realm.ldap.ldapCachePeriod = 2 MINUTES
+
 # Defines whether to synchronize all LDAP users into the backing user service
 #
 # Valid values: true, false

--
Gitblit v1.9.1