diff --git a/htroot/ConfigHTCache_p.html b/htroot/ConfigHTCache_p.html
index bb59d2dd8..2c405795c 100644
--- a/htroot/ConfigHTCache_p.html
+++ b/htroot/ConfigHTCache_p.html
@@ -33,9 +33,10 @@
- Cache Deletion
- Delete HTTP & FTP Cache
- Delete robots.txt Cache
+ Delete robots.txt Cache
+ Delete cached snippet-fetching failures during search
diff --git a/htroot/ConfigHTCache_p.java b/htroot/ConfigHTCache_p.java
index e3bc15c36..331d8856d 100644
--- a/htroot/ConfigHTCache_p.java
+++ b/htroot/ConfigHTCache_p.java
@@ -27,9 +27,11 @@
// if the shell's current path is HTROOT
import java.io.File;
+import java.io.IOException;
import net.yacy.cora.protocol.RequestHeader;
+import de.anomic.data.WorkTables;
import de.anomic.http.client.Cache;
import de.anomic.search.Switchboard;
import de.anomic.search.SwitchboardConstants;
@@ -38,7 +40,7 @@ import de.anomic.server.serverSwitch;
public class ConfigHTCache_p {
- public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) {
+ public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) throws IOException {
// return variable that accumulates replacements
final Switchboard sb = (Switchboard) env;
final serverObjects prop = new serverObjects();
@@ -70,6 +72,9 @@ public class ConfigHTCache_p {
if ("on".equals(post.get("deleteRobots", ""))) {
sb.robots.clear();
}
+ if ("on".equals(post.get("deleteSearchFl", ""))) {
+ sb.tables.clear(WorkTables.TABLE_SEARCH_FAILURE_NAME);
+ }
}
prop.put("HTCachePath", env.getConfig(SwitchboardConstants.HTCACHE_PATH, SwitchboardConstants.HTCACHE_PATH_DEFAULT));
diff --git a/htroot/IndexControlRWIs_p.html b/htroot/IndexControlRWIs_p.html
index d994dace9..469df8dca 100644
--- a/htroot/IndexControlRWIs_p.html
+++ b/htroot/IndexControlRWIs_p.html
@@ -41,11 +41,12 @@
- Index Deletion
-
+
+
diff --git a/htroot/IndexControlRWIs_p.java b/htroot/IndexControlRWIs_p.java
index 2ea39ce29..3e934901b 100644
--- a/htroot/IndexControlRWIs_p.java
+++ b/htroot/IndexControlRWIs_p.java
@@ -55,6 +55,7 @@ import net.yacy.repository.Blacklist;
import de.anomic.crawler.CrawlProfile;
import de.anomic.data.ListManager;
+import de.anomic.data.WorkTables;
import de.anomic.http.client.Cache;
import de.anomic.search.QueryParams;
import de.anomic.search.RankingProcess;
@@ -71,7 +72,7 @@ import de.anomic.yacy.dht.PeerSelection;
public class IndexControlRWIs_p {
- public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) {
+ public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) throws IOException {
// return variable that accumulates replacements
final Switchboard sb = (Switchboard) env;
final serverObjects prop = new serverObjects();
@@ -160,6 +161,9 @@ public class IndexControlRWIs_p {
if (post.get("deleteRobots", "").equals("on")) {
sb.robots.clear();
}
+ if (post.get("deleteSearchFl", "").equals("on")) {
+ sb.tables.clear(WorkTables.TABLE_SEARCH_FAILURE_NAME);
+ }
post.remove("deletecomplete");
}