[wp-trac] Re: [WordPress Trac] #6746: can't we cache _get_post_ancestors()?

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 16 14:24:29 GMT 2008


#6746: can't we cache _get_post_ancestors()?
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |        Owner:  anonymous
     Type:  defect             |       Status:  new      
 Priority:  normal             |    Milestone:           
Component:  Optimization       |      Version:  2.5      
 Severity:  normal             |   Resolution:           
 Keywords:                     |  
-------------------------------+--------------------------------------------
Comment (by Denis-de-Bernardy):

 figures for a site with 90 static pages:

 @ init hook: 7 queries - 0.160 seconds
 @ template_redirect hook: 11 queries - 0.183 seconds
 @ wp_footer hook: 153 queries - 0.403 seconds

 the 153 queries (almost all related to _get_post_ancestors()) take as much
 as a second every now and then...

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6746#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list