Fixes a bug on check for whether to use query cache, a=chris
Fixes a bug on check for whether to use query cache, a=chris
diff --git a/controllers/search_controller.php b/controllers/search_controller.php
index 4f399bb9f..ccd9621b0 100755
--- a/controllers/search_controller.php
+++ b/controllers/search_controller.php
@@ -645,6 +645,7 @@ class SearchController extends Controller implements CrawlConstants
$raw = ($raw > 0) ? 2 : 0;
}
$query = preg_replace($pattern, "", $query);
+ $original_query = $query;
$query = preg_replace('/no:cache/', "", $query);
$use_cache_if_possible = ($original_query == $query) ? true : false;
$network_work_query = $query;
diff --git a/tests/it_stemmer_test.php b/tests/it_stemmer_test.php
index 983a4e354..a3a47cc0d 100644
--- a/tests/it_stemmer_test.php
+++ b/tests/it_stemmer_test.php
@@ -50,6 +50,8 @@ require_once BASE_DIR.'lib/unit_test.php';
* http://snowball.tartarus.org/algorithms/italian/output.txt
*
* @author Akshat Kukreti
+ * @package seek_quarry
+ * @subpackage test
*/
class ItStemmerTest extends UnitTest