1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 07:25:54 +00:00

move counter cache to a separate class

fix references to get_article_tags
This commit is contained in:
Andrew Dolgov
2017-05-04 15:22:57 +03:00
parent aeb1abedb2
commit 2ed0d6c433
8 changed files with 38 additions and 36 deletions

View File

@@ -81,7 +81,7 @@ class Article extends Handler_Protected {
}
$feed_id = $this->getArticleFeed($id);
ccache_update($feed_id, $_SESSION["uid"]);
CCache::update($feed_id, $_SESSION["uid"]);
}
static function create_published_article($title, $url, $content, $labels_str,
@@ -544,7 +544,7 @@ class Article extends Handler_Protected {
SET unread = false,last_read = NOW()
WHERE ref_id = '$id' AND owner_uid = $owner_uid");
ccache_update($feed_id, $owner_uid);
CCache::update($feed_id, $owner_uid);
}
$result = db_query("SELECT id,title,link,content,feed_id,comments,int_id,lang,
@@ -909,7 +909,7 @@ class Article extends Handler_Protected {
WHERE ($ids_qpart) AND owner_uid = $owner_uid");
while ($line = db_fetch_assoc($result)) {
ccache_update($line["feed_id"], $owner_uid);
CCache::update($line["feed_id"], $owner_uid);
}
}