Skip to content

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

the delete size is smaller See: http://www.yacy-forum.de/viewtopic.php?t=1084

borg-0300971756e8dd2a
diff --git a/source/de/anomic/plasma/plasmaHTCache.java b/source/de/anomic/plasma/plasmaHTCache.java
index bebd095e1..915a7f462 100644
--- a/source/de/anomic/plasma/plasmaHTCache.java
+++ b/source/de/anomic/plasma/plasmaHTCache.java
@@ -256,9 +256,9 @@ public final class plasmaHTCache {
}
private void cleanup() {
- // clean up cache to have 8% (enough) space for next entries
+ // clean up cache to have 3% (enough) space for next entries
if ((currCacheSize >= maxCacheSize) && (cacheAge.size() > 0)) {
- if (maxCacheSize > 0) cleanupDoIt(maxCacheSize - ((maxCacheSize / 100) * 8));
+ if (maxCacheSize > 0) cleanupDoIt((maxCacheSize - ((maxCacheSize / 100) * 3));
}
}
@@ -468,7 +468,7 @@ public final class plasmaHTCache {
(urlString.indexOf("&") >= 0));
}
- public static boolean isCGI(String urlString) {
+ public static boolean isCGI(String urlString) { // Borg-0300
String ls = urlString.toLowerCase();
return ((ls.indexOf(".cgi") >= 0) ||
(ls.indexOf(".exe") >= 0) ||