1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-20 18:11:29 +00:00

disable headline cache when searching

This commit is contained in:
Andrew Dolgov
2007-11-21 11:34:06 +01:00
parent 7e8832b3e2
commit 52d7e7da48
4 changed files with 23 additions and 4 deletions

View File

@@ -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 "</div>";
}
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