]> git.wh0rd.org - tt-rss.git/blobdiff - functions.php
disable headline cache when searching
[tt-rss.git] / functions.php
index 0dce414c909d354158022efca109843508242c6c..3644bc25d9e9b2b24664636151b897b667f93473 100644 (file)
        function outputHeadlinesList($link, $feed, $subop, $view_mode, $limit, $cat_view,
                                        $next_unread_feed, $offset) {
 
+               $disable_cache = false;
+
                $timing_info = getmicrotime();
 
                $topmost_article_ids = array();
                /// 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"]);
 
                        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