From: Andrew Dolgov Date: Sat, 17 Jan 2009 16:21:03 +0000 (+0100) Subject: add fallback for headlines-unread element when ccache has no data X-Git-Tag: 1.3.0~114 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=696a6850db4f86a37e931ade575c9103fd36b27e;p=tt-rss.git add fallback for headlines-unread element when ccache has no data --- diff --git a/backend.php b/backend.php index 67990a2a..1a76c4f6 100644 --- a/backend.php +++ b/backend.php @@ -321,7 +321,12 @@ print ""; $headlines_unread = ccache_find($link, $returned_feed, $_SESSION["uid"], - $cat_view); + $cat_view, true); + + if ($headlines_unread == -1) { + $headlines_unread = getFeedUnread($link, $returned_feed, $cat_view); + + } print ""; printf("", $disable_cache);