Changeset 41315
- Timestamp:
- 08/25/2017 04:15:27 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media.php
r41234 r41315 1336 1336 if ( count( $attachment_ids ) > 1 ) { 1337 1337 /* 1338 * Warm object cache for use with 'get_post_meta()'. 1339 * 1340 * To avoid making a database call for each image, a single query 1341 * warms the object cache with the meta information for all images. 1338 * Warm the object cache with post and meta information for all found 1339 * images to avoid making individual database calls. 1342 1340 */ 1343 update_meta_cache( 'post', array_keys( $attachment_ids ));1341 _prime_post_caches( array_keys( $attachment_ids ), false, true ); 1344 1342 } 1345 1343
Note: See TracChangeset
for help on using the changeset viewer.