Unverified Commit 33bd9dcb by Scott Committed by GitHub

Merge pull request #602 from pupi1985/patch-101

Update cached tag count when deleting posts
parents 69657668 4ae9c8fc
......@@ -124,6 +124,7 @@ function qa_update_counts_for_q($postid)
qa_db_unaqcount_update();
qa_db_unselqcount_update();
qa_db_unupaqcount_update();
qa_db_tagcount_update();
}
......
......@@ -106,6 +106,9 @@ function qa_question_set_content($oldquestion, $title, $content, $format, $text,
} elseif ($oldquestion['type'] == 'Q') { // not hidden or queued
qa_post_index($oldquestion['postid'], 'Q', $oldquestion['postid'], $oldquestion['parentid'], $title, $content, $format, $text, $tagstring, $oldquestion['categoryid']);
if ($tagschanged) {
qa_db_tagcount_update();
}
}
$eventparams = array(
......
......@@ -68,7 +68,6 @@ class qa_search_basic
qa_db_word_contentcount_update(array_keys($contentwordidcounts));
qa_db_word_tagwordcount_update($tagwordids);
qa_db_word_tagcount_update($wholetagids);
qa_db_tagcount_update();
}
public function unindex_post($postid)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment