summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2010-11-09 22:41:13 +0300
committerAndrew Dolgov <[email protected]>2010-11-09 22:41:13 +0300
commit490c366d39126d8abab29547e8dd983ee254e859 (patch)
treedc6faa0f67f873fb6070ad6b2271642d2f984550 /modules
parent38edb1510d58b7c8b88d29539afdcecdff8edbf4 (diff)
add tag cache for user_entries (bump schema)
Diffstat (limited to 'modules')
-rw-r--r--modules/backend-rpc.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php
index 8f31cd748..a825242c6 100644
--- a/modules/backend-rpc.php
+++ b/modules/backend-rpc.php
@@ -423,8 +423,8 @@
$id = db_escape_string($_REQUEST["id"]);
$tags_str = db_escape_string($_REQUEST["tags_str"]);
-
$tags = array_unique(trim_array(split(",", $tags_str)));
+ $tags_str = db_escape_string(join(",", $tags));
db_query($link, "BEGIN");
@@ -458,6 +458,10 @@
}
}
+ db_query($link, "UPDATE ttrss_user_entries
+ SET tag_cache = '$tags_str' WHERE ref_id = '$id'
+ AND owner_uid = " . $_SESSION["uid"]);
+
db_query($link, "COMMIT");
if ($memcache) {