]> git.wh0rd.org - tt-rss.git/blobdiff - functions.php
support for ccache updates in catchupArticlesById()
[tt-rss.git] / functions.php
index e84665999bf21f7571e8b92d74879170682bccc8..50f5f7236866556b37e4123da06eb03f00f0a2a6 100644 (file)
                        unread = NOT unread,last_read = NOW()
                        WHERE ($ids_qpart) AND owner_uid = $owner_uid");
                }
+
+               /* update ccache */
+
+               $result = db_query($link, "SELECT DISTINCT feed_id FROM ttrss_user_entries
+                       WHERE ($ids_qpart) AND owner_uid = $owner_uid");
+
+               while ($line = db_fetch_assoc($result)) {
+                       ccache_update($link, $line["feed_id"], $owner_uid);
+               }
        }
 
        function catchupArticleById($link, $id, $cmode) {