This commit is contained in:
Shish
2020-02-06 03:10:30 +00:00
parent 2b994d5c29
commit cdaecb3380
4 changed files with 25 additions and 20 deletions

View File

@ -45,10 +45,12 @@ class Index extends Extension
try {
$fast_page_limit = 500;
if(
SPEED_HAX
&& strstr($_SERVER["HTTP_USER_AGENT"], "Googlebot") !== false
&& count($search_terms) > 1
if (
SPEED_HAX && strstr($_SERVER["HTTP_USER_AGENT"], "Googlebot") !== false
&& (
$count_search_terms > 1
|| ($count_search_terms == 1 && $search_terms[0][0] == "-")
)
) {
// googlebot loves searching for weird combinations of tags...
$fast_page_limit = 50;