[wp-trac] [WordPress Trac] #28159: get_body_class makes a raw, uncacheable query for child posts

WordPress Trac noreply at wordpress.org
Tue Jun 3 13:56:59 UTC 2014


#28159: get_body_class makes a raw, uncacheable query for child posts
--------------------------+-----------------------
 Reporter:  rmccue        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.0
Component:  Themes        |     Version:  2.8
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  template
--------------------------+-----------------------

Comment (by kovshenin):

 Replying to [comment:3 nacin]: Sure, but that doesn't really give us the
 page's children. Perhaps "caching" the query result in a
 `_wp_has_children` meta and flushing it in `wp_insert_post()` could work?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28159#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list