diff options
author | Andrew Dolgov <[email protected]> | 2013-05-02 10:09:01 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-05-02 10:09:01 +0400 |
commit | f8a25082b39cc6ee2b0d82a42e46d4609b32ce6a (patch) | |
tree | ed9171d3f9dcc971930bb6656910cee4a82ff34b /classes/feeds.php | |
parent | ea18cceaca2fb7562f07a78248fcc15469413629 (diff) |
make tag cache processing faster in cdm
Diffstat (limited to 'classes/feeds.php')
-rw-r--r-- | classes/feeds.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/classes/feeds.php b/classes/feeds.php index f21bb3ce5..31bcbac57 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -514,8 +514,10 @@ class Feeds extends Handler_Protected { } else { - $line["tags"] = get_article_tags($id, $_SESSION["uid"], $line["tag_cache"]); - unset($line["tag_cache"]); + if ($line["tag_cache"]) + $tags = explode(",", $line["tag_cache"]); + else + $tags = false; $line["content"] = sanitize($line["content_preview"], sql_bool_to_bool($line['hide_images']), false, $entry_site_url); @@ -682,7 +684,7 @@ class Feeds extends Handler_Protected { $reply['content'] .= $p->hook_article_left_button($line); } - $tags_str = format_tags_string($line["tags"], $id); + $tags_str = format_tags_string($tags, $id); $reply['content'] .= "<img src='images/tag.png' alt='Tags' title='Tags'> <span id=\"ATSTR-$id\">$tags_str</span> |