public function unindex_post($postid) { require_once QA_INCLUDE_DIR . 'db/post-update.php'; $titlewordids = qa_db_titlewords_get_post_wordids($postid); qa_db_titlewords_delete_post($postid); qa_db_word_titlecount_update($titlewordids); $contentwordids = qa_db_contentwords_get_post_wordids($postid); qa_db_contentwords_delete_post($postid); qa_db_word_contentcount_update($contentwordids); $tagwordids = qa_db_tagwords_get_post_wordids($postid); qa_db_tagwords_delete_post($postid); qa_db_word_tagwordcount_update($tagwordids); $wholetagids = qa_db_posttags_get_post_wordids($postid); qa_db_posttags_delete_post($postid); qa_db_word_tagcount_update($wholetagids); }
function qa_post_unindex($postid) { global $qa_post_indexing_suspended; if ($qa_post_indexing_suspended > 0) { return; } $titlewordids = qa_db_titlewords_get_post_wordids($postid); qa_db_titlewords_delete_post($postid); qa_db_word_titlecount_update($titlewordids); $contentwordids = qa_db_contentwords_get_post_wordids($postid); qa_db_contentwords_delete_post($postid); qa_db_word_contentcount_update($contentwordids); $tagwordids = qa_db_tagwords_get_post_wordids($postid); qa_db_tagwords_delete_post($postid); qa_db_word_tagwordcount_update($tagwordids); $wholetagids = qa_db_posttags_get_post_wordids($postid); qa_db_posttags_delete_post($postid); qa_db_word_tagcount_update($wholetagids); }