From 252dc07d7f85cc344b5919bb7c6166ef84b2102e Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gmail.com> Date: Mon, 25 Jan 2016 11:55:58 -0500 Subject: [PATCH] Merge pull request #988 from gitblit/976-raw-download-filestore-item --- src/main/java/com/gitblit/utils/ObjectCache.java | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/gitblit/utils/ObjectCache.java b/src/main/java/com/gitblit/utils/ObjectCache.java index 48a9668..e75d4b8 100644 --- a/src/main/java/com/gitblit/utils/ObjectCache.java +++ b/src/main/java/com/gitblit/utils/ObjectCache.java @@ -54,6 +54,10 @@ } } + public void clear() { + cache.clear(); + } + public boolean hasCurrent(String name, Date date) { return cache.containsKey(name) && cache.get(name).date.compareTo(date) == 0; } -- Gitblit v1.9.1