diff options
| author | Andrew Dolgov <fox@bah.spb.su> | 2009-01-16 16:02:47 +0100 |
|---|---|---|
| committer | Andrew Dolgov <fox@bah.spb.su> | 2009-01-16 16:02:47 +0100 |
| commit | 0737b95a56476b79427b613b50ec4979410244bc (patch) | |
| tree | 7869e1321c2323fbf0568218e8e89795301346d3 /functions.php | |
| parent | 73241803c7c5975b00eba91b08a5071d341af0c6 (diff) | |
support for ccache updates in catchupArticlesById()
Diffstat (limited to 'functions.php')
| -rw-r--r-- | functions.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/functions.php b/functions.php index e84665999..50f5f7236 100644 --- a/functions.php +++ b/functions.php @@ -3980,6 +3980,15 @@ 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) { |