Performance hit from update_post_caches
|Reported by:||prettyboymp||Owned by:||ryan|
I question the benefit from updating the post cache during the update_post_caches function, specifically where WP_Query->get_posts() calls the update_post_caches with the returned posts. Since a majority of all get_post() calls using posts that were returned from WP_Query->get_posts() will be used within the loop where the global $post would be used instead of the instance in cache.
Normally, this wouldn't be a big deal, except that in performance testing on a site with memcache setup, the cost of the call to update_post_caches is responsible for ~127ms, or 10% - 20% of the rendering time.
Change History (13)
- Keywords has-patch removed
- Resolution set to fixed
- Status changed from assigned to closed