Uses
Uses | Description |
---|---|
wp-includes/meta.php: update_meta_cache() | Updates the metadata cache for the specified objects. |
Updates metadata cache for list of post IDs.
Performs SQL query to retrieve the metadata for the post IDs and updates the metadata cache for the posts. Therefore, the functions, which call this function, do not need to perform SQL queries on their own.
(int[]) (Required) Array of post IDs.
(array|false) An array of metadata on success, false if there is nothing to update.
File: wp-includes/post.php
function update_postmeta_cache( $post_ids ) { return update_meta_cache( 'post', $post_ids ); }
Version | Description |
---|---|
2.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/update_postmeta_cache