Make WordPress Core

Changeset 53944


Ignore:
Timestamp:
08/26/2022 01:01:23 AM (2 years ago)
Author:
peterwilsoncc
Message:

Cache API, Docs: Remove private delegation from cache priming functions.

Remove the private delegation from the following cache priming functions for various object types:

  • _prime_post_caches()
  • _prime_term_caches()
  • _prime_comment_caches()
  • _prime_network_caches()
  • _prime_site_caches()
  • _get_non_cached_ids()

Plugins and themes are now encouraged to use these functions to improve the performance of their code by reducing the number of database queries.

Props robinwpdeveloper, desrosj, SergeyBiryukov, mukesh27, costdev.
Fixes #56386.

Location:
trunk/src/wp-includes
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r53730 r53944  
    32983298 *
    32993299 * @since 4.4.0
    3300  * @access private
     3300 * @since 6.1.0 This function is no longer marked as "private".
    33013301 *
    33023302 * @see update_comment_cache()
  • trunk/src/wp-includes/functions.php

    r53934 r53944  
    69896989 *
    69906990 * @since 3.4.0
    6991  * @access private
     6991 * @since 6.1.0 This function is no longer marked as "private".
    69926992 *
    69936993 * @param int[]  $object_ids Array of IDs.
  • trunk/src/wp-includes/ms-network.php

    r52707 r53944  
    123123 *
    124124 * @since 4.6.0
    125  * @access private
     125 * @since 6.1.0 This function is no longer marked as "private".
    126126 *
    127127 * @see update_network_cache()
  • trunk/src/wp-includes/ms-site.php

    r53939 r53944  
    340340 * @since 4.6.0
    341341 * @since 5.1.0 Introduced the `$update_meta_cache` parameter.
    342  * @access private
     342 * @since 6.1.0 This function is no longer marked as "private".
    343343 *
    344344 * @see update_site_cache()
  • trunk/src/wp-includes/post.php

    r53934 r53944  
    79067906 *
    79077907 * @since 3.4.0
    7908  * @access private
     7908 * @since 6.1.0 This function is no longer marked as "private".
    79097909 *
    79107910 * @see update_post_caches()
  • trunk/src/wp-includes/taxonomy.php

    r53893 r53944  
    40064006 *
    40074007 * @since 4.6.0
    4008  * @access private
     4008 * @since 6.1.0 This function is no longer marked as "private".
    40094009 *
    40104010 * @global wpdb $wpdb WordPress database abstraction object.
Note: See TracChangeset for help on using the changeset viewer.