mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
the delete size is smaller
See: http://www.yacy-forum.de/viewtopic.php?t=1084 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@634 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
0471019606
commit
971756e8dd
|
@ -256,9 +256,9 @@ public final class plasmaHTCache {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void cleanup() {
|
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 ((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));
|
(urlString.indexOf("&") >= 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isCGI(String urlString) {
|
public static boolean isCGI(String urlString) { // Borg-0300
|
||||||
String ls = urlString.toLowerCase();
|
String ls = urlString.toLowerCase();
|
||||||
return ((ls.indexOf(".cgi") >= 0) ||
|
return ((ls.indexOf(".cgi") >= 0) ||
|
||||||
(ls.indexOf(".exe") >= 0) ||
|
(ls.indexOf(".exe") >= 0) ||
|
||||||
|
|
Loading…
Reference in New Issue
Block a user