]> git.wh0rd.org - tt-rss.git/blobdiff - functions.php
Revert "update translations"
[tt-rss.git] / functions.php
index ee1e8fbe8979544b97cc67fcd1ec48927a611719..4c867f26c198109af584787bfe2116c46cb2b65b 100644 (file)
                        value = 0 WHERE owner_uid = '$owner_uid'");
        }
 
+       function ccache_remove($link, $feed_id, $owner_uid, $is_cat = false) {
+
+               if (!$is_cat) {
+                       $table = "ttrss_counters_cache";
+               } else {
+                       $table = "ttrss_cat_counters_cache";
+               }
+
+               db_query($link, "DELETE FROM $table WHERE
+                       feed_id = '$feed_id' AND owner_uid = '$owner_uid'");
+
+       }
+
        function ccache_update_all($link, $owner_uid) {
 
                if (get_pref($link, 'ENABLE_FEED_CATS', $owner_uid)) {