diff options
author | Andrew Dolgov <[email protected]> | 2007-05-15 08:37:10 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2007-05-15 08:37:10 +0100 |
commit | 961f4c7323a840d256f95f0c026178ddf9fa13c0 (patch) | |
tree | a90a772351f39c95ca1d856a969777749afdd987 /backend.php | |
parent | 53761dda370de2d37dfd2cb1446b1c634b26abf2 (diff) |
prefetch topmost articles on headlines load
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/backend.php b/backend.php index 6f37085fa..1af01a7b8 100644 --- a/backend.php +++ b/backend.php @@ -195,11 +195,19 @@ print "<headlines id=\"$feed\"><![CDATA["; - outputHeadlinesList($link, $feed, $subop, $view_mode, $limit, $cat_view, - $next_unread_feed, $offset); + $topmost_article_ids = outputHeadlinesList($link, $feed, $subop, + $view_mode, $limit, $cat_view, $next_unread_feed, $offset); print "]]></headlines>"; + if (is_array($topmost_article_ids)) { + print "<articles>"; + foreach ($topmost_article_ids as $id) { + outputArticleXML($link, $id, $feed, false); + } + print "</articles>"; + } + print "<counters>"; getAllCounters($link, $omode); print "</counters>"; |