Parcourir la source

Invalidate all cached repository data on "clear cache" (issue-346)

Change-Id: I14404e38bbc6f5827c430849baf3c13f4df2c6ef
tags/v1.4.0
James Moger il y a 10 ans
Parent
révision
3811378e0e

+ 1
- 0
releases.moxie Voir le fichier

- Fixed support for implied SSH urls in web.otherUrls (issue-311) - Fixed support for implied SSH urls in web.otherUrls (issue-311)
- Bind LDAP connection after establishing TLS initialization (issue-343) - Bind LDAP connection after establishing TLS initialization (issue-343)
- Fixed NPE when attempting to add a permission without a registrant (issue-344) - Fixed NPE when attempting to add a permission without a registrant (issue-344)
- Invalidate all cached repository data on "clear cache" (issue-346)
- Fix potential NPE on removing uncached repository from cache - Fix potential NPE on removing uncached repository from cache
- Ignore the default contents of .git/description file - Ignore the default contents of .git/description file
- Fix error on generating activity page when there is no activity - Fix error on generating activity page when there is no activity

+ 2
- 0
src/main/java/com/gitblit/manager/RepositoryManager.java Voir le fichier

public void resetRepositoryListCache() { public void resetRepositoryListCache() {
logger.info("Repository cache manually reset"); logger.info("Repository cache manually reset");
repositoryListCache.clear(); repositoryListCache.clear();
repositorySizeCache.clear();
repositoryMetricsCache.clear();
} }


/** /**

+ 4
- 0
src/main/java/com/gitblit/utils/ObjectCache.java Voir le fichier

} }
} }
public void clear() {
cache.clear();
}
public boolean hasCurrent(String name, Date date) { public boolean hasCurrent(String name, Date date) {
return cache.containsKey(name) && cache.get(name).date.compareTo(date) == 0; return cache.containsKey(name) && cache.get(name).date.compareTo(date) == 0;
} }

Chargement…
Annuler
Enregistrer