1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-17 21:31:30 +00:00

editTagsSave: invalidate article cache

This commit is contained in:
Andrew Dolgov
2010-01-18 13:55:28 +03:00
parent fde715c1f2
commit bd3f2ade87
3 changed files with 28 additions and 8 deletions

View File

@@ -440,6 +440,8 @@
if ($subop == "setArticleTags") {
global $memcache;
$id = db_escape_string($_REQUEST["id"]);
$tags_str = db_escape_string($_REQUEST["tags_str"]);
@@ -480,6 +482,11 @@
db_query($link, "COMMIT");
if ($memcache) {
$obj_id = md5("TAGS:".$_SESSION["uid"].":$id");
$memcache->delete($obj_id);
}
$tags_str = format_tags_string(get_article_tags($link, $id), $id);
print "<rpc-reply>