diff --git a/ext/index/main.php b/ext/index/main.php index 8dae2acc..66f42ef6 100644 --- a/ext/index/main.php +++ b/ext/index/main.php @@ -46,13 +46,18 @@ class Index extends Extension $fast_page_limit = 500; if ( - SPEED_HAX && strstr($_SERVER["HTTP_USER_AGENT"], "Googlebot") !== false + SPEED_HAX + && ( + strstr($_SERVER["HTTP_USER_AGENT"], "Googlebot") !== false + || strstr($_SERVER["HTTP_USER_AGENT"], "YandexBot") !== false + || strstr($_SERVER["HTTP_USER_AGENT"], "bingbot") !== false + ) && ( $count_search_terms > 1 || ($count_search_terms == 1 && $search_terms[0][0] == "-") ) ) { - // googlebot loves searching for weird combinations of tags... + // bots love searching for weird combinations of tags... $fast_page_limit = 10; }