From 27ae9095639bb228a1b7ff86a3ebe4264abf05be Mon Sep 17 00:00:00 2001
From: mschaefers <mschaefers@scoop-gmbh.de>
Date: Thu, 29 Nov 2012 12:33:09 -0500
Subject: [PATCH] feature: when using LdapUserService one can configure Gitblit to fetch all users from ldap that can possibly login. This allows to see newly generated LDAP users instantly in Gitblit. By now an LDAP user had to log in once to appear in GitBlit.

---
 src/com/gitblit/utils/ObjectCache.java |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/com/gitblit/utils/ObjectCache.java b/src/com/gitblit/utils/ObjectCache.java
index 3bbf4d1..38f2e59 100644
--- a/src/com/gitblit/utils/ObjectCache.java
+++ b/src/com/gitblit/utils/ObjectCache.java
@@ -91,4 +91,8 @@
 		}
 		return null;
 	}
+	
+	public int size() {
+		return cache.size();
+	}
 }

--
Gitblit v1.9.1