mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
clear caches after changing blacklists, closes http://forum.yacy-websuche.de/viewtopic.php?f=6&t=241&p=1964#p1964
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4088 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
5b0c1449e1
commit
6601e37512
|
@ -118,10 +118,14 @@ public abstract class abstractURLPattern implements plasmaURLPattern {
|
|||
}
|
||||
|
||||
public void clear() {
|
||||
Iterator iter = this.hostpaths.keySet().iterator();
|
||||
Iterator iter = this.hostpaths.values().iterator();
|
||||
Iterator cIter = this.cachedUrlHashs.values().iterator();
|
||||
while (iter.hasNext()) {
|
||||
HashMap blacklistMap = (HashMap) this.hostpaths.get(iter.next());
|
||||
blacklistMap.clear();
|
||||
((HashMap) iter.next()).clear();
|
||||
}
|
||||
while (cIter.hasNext()) {
|
||||
// clear caches as well to avoid wrong/outdated matches after changing lists
|
||||
((Set) cIter.next()).clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user