[wp-trac] [WordPress Trac] #12611: Performance hit from update_post_caches
WordPress Trac
wp-trac at lists.automattic.com
Mon Mar 15 20:13:03 UTC 2010
#12611: Performance hit from update_post_caches
--------------------------+-------------------------------------------------
Reporter: prettyboymp | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: Performance | Version:
Severity: normal | Keywords: dev-feedback
--------------------------+-------------------------------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12611>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list