From 1b4449a90ba9dfdfba22363a8886b5361a899707 Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 21 Feb 2014 15:45:31 -0500 Subject: Reset the commit cache on repository deletion --- src/main/java/com/gitblit/manager/RepositoryManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/gitblit/manager/RepositoryManager.java b/src/main/java/com/gitblit/manager/RepositoryManager.java index afa96b20..6b4fe97f 100644 --- a/src/main/java/com/gitblit/manager/RepositoryManager.java +++ b/src/main/java/com/gitblit/manager/RepositoryManager.java @@ -449,6 +449,7 @@ public class RepositoryManager implements IRepositoryManager { private void clearRepositoryMetadataCache(String repositoryName) { repositorySizeCache.remove(repositoryName); repositoryMetricsCache.remove(repositoryName); + CommitCache.instance().clear(repositoryName); } /** @@ -461,6 +462,7 @@ public class RepositoryManager implements IRepositoryManager { repositoryListCache.clear(); repositorySizeCache.clear(); repositoryMetricsCache.clear(); + CommitCache.instance().clear(); } /** -- cgit v1.2.3