summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-11-21 11:34:06 +0100
committerAndrew Dolgov <[email protected]>2007-11-21 11:34:06 +0100
commit52d7e7da486d77b2e4dbd0cdfe29fd790c920be4 (patch)
tree45f3fd506f516b57e5a3c4bdd26dac8ee25051b4 /functions.php
parent7e8832b3e210139b247150831b22bda5c345d06d (diff)
disable headline cache when searching
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php9
1 files changed, 8 insertions, 1 deletions
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 "</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