Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

IFFRESH is too strong, IFEXIST sufficient for cache policy when doing a link verification (this is as it was two commits before)

orbiterd7767e75890c
diff --git a/htroot/yacysearch.java b/htroot/yacysearch.java
index 7e3b3055e..398c928e6 100644
--- a/htroot/yacysearch.java
+++ b/htroot/yacysearch.java
@@ -97,7 +97,7 @@ public class yacysearch {
// get query
String originalquerystring = (post == null) ? "" : post.get("query", post.get("search", "")).trim();
String querystring = originalquerystring.replace('+', ' ');
- CrawlProfile.CacheStrategy snippetFetchStrategy = (post != null && post.get("verify", "false").equals("true")) ? CrawlProfile.CacheStrategy.IFFRESH : CrawlProfile.CacheStrategy.parse(post.get("verify", "cacheonly"));
+ CrawlProfile.CacheStrategy snippetFetchStrategy = (post != null && post.get("verify", "false").equals("true")) ? CrawlProfile.CacheStrategy.IFEXIST : CrawlProfile.CacheStrategy.parse(post.get("verify", "cacheonly"));
if (snippetFetchStrategy == null) snippetFetchStrategy = CrawlProfile.CacheStrategy.CACHEONLY;
final serverObjects prop = new serverObjects();