wordpress-develop/tests/phpunit/tests/comment
Boone Gorges 2fd81992bc Split the comment query.
`WP_Comment_Query` now fetches comments in two stages: (1) a query to get the
IDs of comments matching the query vars, and (2) a query to populate the
objects corresponding to the matched IDs. The two queries are cached
separately, so that sites with persistent object caches will continue to have
complete cache coverage for normal comment queries.

Splitting the query allows our cache strategy to be more modest and precise, as
full comment data is only stored once per comment. It also makes it possible
to introduce logic for paginated threading, which is necessary to address
certain performance problems.

See #8071.
data is only stored once per comment, instead of along with

git-svn-id: https://develop.svn.wordpress.org/trunk@34310 602fd350-edb4-49c9-b593-d223f7449a82
2015-09-18 19:27:39 +00:00
..
checkComment.php Add tests for check_comment(). 2015-05-20 19:08:07 +00:00
commentForm.php In comment_form(), ensure that filtered arguments contain all required default values. 2015-05-19 01:03:39 +00:00
dateQuery.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
getCommentCount.php Comments: wp_count_comments() can use get_comment_count() internally to makes its DB query, provided that get_comment_count() returns more properties. 2015-08-31 18:50:12 +00:00
getCommentsPagesCount.php Pinking shears in unit test files. 2015-03-05 13:14:28 +00:00
getPageOfComment.php Add basic unit tests for get_page_of_comment(). 2015-01-29 02:30:22 +00:00
metaCache.php Split the comment query. 2015-09-18 19:27:39 +00:00
query.php Split the comment query. 2015-09-18 19:27:39 +00:00
slashes.php Missed files from [34172]. 2015-09-15 08:08:15 +00:00
template.php Allow get_comments_number() to officially accept $post or $post_id. Adds unit tests. 2014-05-23 17:43:03 +00:00
walker.php Ensure that a has_children parameter is given to Walker::start_el(). 2014-06-24 17:05:56 +00:00
wpCountComments.php In _wp_ajax_delete_comment_response(), read the new 'all' prop returned by get_comment_count() via wp_count_comments() when setting $total. 'all' doesn't include spam in its count. 2015-09-15 01:46:51 +00:00