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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user