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.



git-svn-id: https://develop.svn.wordpress.org/trunk@53944 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Wilson
2022-08-26 01:01:23 +00:00
parent 8db6a6e26a
commit 541b4eb646
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -4005,7 +4005,7 @@ function _pad_term_counts( &$terms, $taxonomy ) {
* Adds any terms from the given IDs to the cache that do not already exist in cache.
*
* @since 4.6.0
* @access private
* @since 6.1.0 This function is no longer marked as "private".
*
* @global wpdb $wpdb WordPress database abstraction object.
*