From 52d7e7da486d77b2e4dbd0cdfe29fd790c920be4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 21 Nov 2007 11:34:06 +0100 Subject: disable headline cache when searching --- functions.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index 0dce414c9..3644bc25d 100644 --- a/functions.php +++ b/functions.php @@ -4519,6 +4519,8 @@ function outputHeadlinesList($link, $feed, $subop, $view_mode, $limit, $cat_view, $next_unread_feed, $offset) { + $disable_cache = false; + $timing_info = getmicrotime(); $topmost_article_ids = array(); @@ -4586,6 +4588,11 @@ /// START ///////////////////////////////////////////////////////////////////////////////// $search = db_escape_string($_GET["query"]); + + if ($search) { + $disable_cache = true; + } + $search_mode = db_escape_string($_GET["search_mode"]); $match_on = db_escape_string($_GET["match_on"]); @@ -4952,7 +4959,7 @@ print ""; } - return array($topmost_article_ids, $headlines_count, $feed); + return array($topmost_article_ids, $headlines_count, $feed, $disable_cache); } // from here: http://www.roscripts.com/Create_tag_cloud-71.html -- cgit v1.2.3