Skip to:
Content

bbPress.org


Ignore:
Timestamp:
08/09/2018 07:53:28 PM (7 years ago)
Author:
johnjamesjacoby
Message:

Tests: get all post type/status counts using bbp_get_child_counts().

  • Fix a broken test, and improve a few others
  • Update several count() instances that were doing expensive _ids() counts
  • Strategically bust the bbpress_posts query cache group on updates

This change improves general performance and count reliability by ensuring the accuracy of forum/topic/reply relationship totals.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/functions.php

    r6838 r6848  
    17291729
    17301730    // Bail if nothing passed
    1731     if ( empty( $parent_id ) || empty( $post_type ) ) {
     1731    if ( empty( $post_type ) ) {
    17321732        return false;
    17331733    }
Note: See TracChangeset for help on using the changeset viewer.