]> source.dussan.org Git - gitblit.git/commitdiff
Reset the commit cache on repository deletion 13/13/1
authorJames Moger <james.moger@gitblit.com>
Fri, 21 Feb 2014 20:45:31 +0000 (15:45 -0500)
committerJames Moger <james.moger@gitblit.com>
Fri, 21 Feb 2014 20:45:31 +0000 (15:45 -0500)
src/main/java/com/gitblit/manager/RepositoryManager.java

index afa96b20549e6c3314b5ebf4aca244b512d8e05b..6b4fe97fa3e960cfa6e34c0356e66d54973a5f80 100644 (file)
@@ -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();
        }
 
        /**