1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-02 22:47:11 +00:00

add tag cache for user_entries (bump schema)

This commit is contained in:
Andrew Dolgov
2010-11-09 22:41:13 +03:00
parent 38edb1510d
commit 490c366d39
7 changed files with 55 additions and 9 deletions

View File

@@ -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) {