I did a lot of digging into wordpress, and it looks like WP_Query ends up calling (indirectly) update_postmeta_cache($postIDs);
which looks like it is exactly what I need.
Hope that helps somebody else out. In 3.5.1 it’s located in wp-includes/post.php#2735.
Related Posts:
- How to get all term meta for a taxonomy – getting term_meta for taxonomy
- Short of raw SQL, can I query for multiple attachment metadata that have a given array key?
- Triple meta_key on custom SELECT query
- Get updated post meta on save_post action?
- How to stop wp_postmeta from being called on archive and search pages?
- MySQL Query To Select Post By Postmeta
- What type of index should I use for postmeta?
- Set Condition echo function get_post_meta
- Get a row from a separate table by matching a posts meta_key to a tables ID column
- Compare string with post id in wpdb and do stuff when match is found
- cleaning up safely wordpress wp_postmeta table
- Read post meta values, only if posts are public
- How to test the outcome of a wpdb query?
- wpdb->get_var – count author posts, meta value
- How to query and update one colum in postmeta table?
- Display current ranking of post as a number in post title
- get specific values from WordPress meta_value
- Get data from custom table and update relative post_meta based on meta_key
- Get table parameter and save in meta value
- Optimize WP Meta Query for large amount of post meta?
- Exclude category from DB query
- Fetching array of postmeta with $wpdb and in_array conditional
- Which query method to use? (edit- wpdb syntax problems)
- How to get all the related ids without array?
- How can I get the post ID from a WP_Query loop?
- How to edit a post meta data in a Gutenberg Block?
- How to update/delete array in post meta value?
- How do I retrieve multi-dimensional arrays from the wp_postmeta table, & display on a website?
- Why am I getting an infinite loop with have_posts?
- adding a URL to a post meta
- Adding meta data to an attachment post
- Problem With Order Item Meta In Woocommerce
- How to store Gutenberg ColourPicker RGBA as metadata
- Is it possible to update a post meta field through REST API if the format of it when registered is nested?
- Query 2 meta key values and a category
- trying to do if post meta !=0
- Trying to get file name
- Best way to save postmeta
- How to add meta data to WordPress posts?
- How to update Post Meta values through the comment system
- Filtering multiple meta_values
- get_post_meta pagination
- How add post_meta from user_meta?
- How can I get my iFrame to work with url from post_meta?
- Removing Post Meta from Category Pages?
- How to use update_post_meta() function properly?
- Hey, I want the second options. get_post_meta()
- Insert post metadata for all posts in CPT at once if metadata no existent
- populate post meta in gravity forms [closed]
- Get User Post if Private
- How to receive all the meta information of a post ?
- How do I dynamically call a page/post author into the meta data?
- Compare old meta with new post meta
- need to add add user names to the post for later retrieval or removal
- Like & Dislike functionality using JavaScript
- Time & Date on Post – Time Ago Custom Function
- Mass removing CSS from 1,700 post [closed]
- How to remove Date from Meta Description on SERP?
- Unfiltered html with update_post_meta
- get meta value from page query
- Help with Post Meta
- why after saving meta value it’s saving all the values the one that i clicked?
- How do I manage custom meta in post revisions in the Block Editor era?
- Generate metadata for cloud images
- Migrating meta value to new meta value
- Insert multiple metas in one time
- How to extract data from a post meta
- count post meta values
- Correct meta of Writing Meta Tags
- Get post_meta from specific post [closed]
- How to add tags to post from frontend?
- Retrieve user_meta and copy to post_meta
- getting the post_id from the post_meta
- troubles with get_post_meta (and saving it)
- How to save HTML data into SQL post_content column
- How to merge the array values in foreach?
- Negative meta_query if storing multiple post_meta values with shared meta_key
- Frontend query and does not need to log in [closed]
- How to exclude posts by meta key value in the_post_navigation next prev links?
- update_post_meta not working with transition_comment_status
- Update post meta date always store 1970-01-07
- Is it possible to pass an whole array using custom field in wordpress?
- Attachment metadata has value of ‘1’
- How do I update a specific value within array in a products metadata?
- Programatically delete several attributes in _product_attributes in post meta
- rendering open graph meta tags in wordpress
- Get post meta after insert post
- Restore deleted _thumbnail_id in postmeta table
- Hide the_meta if no value
- Order by in foreach
- php wp_insert data on front using a form
- Updating post_meta when updating a setting with the Settings API
- How to show specific meta keys of all posts in admin panel?
- wp_schedule_event not working
- Media library orphans
- WordPress join posts with meta values of array type
- Retrieve post data via WPDB class
- Problem with get_post_meta
- Site uses wpdb to fetch meta_keys but just displays first meta_key from a page (the post uses the same meta_key “filmmaker” more than once)
- Post meta box data not saving