mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 13:45:56 +00:00
prefetch topmost articles on headlines load
This commit is contained in:
12
backend.php
12
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>";
|
||||
|
||||
Reference in New Issue
Block a user