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

WordPress Trac noreply at wordpress.org
Thu Jun 5 16:11:56 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 commit  |     Focuses:  template
------------------------------+-----------------------
Changes (by SergeyBiryukov):

 * keywords:  has-patch => has-patch commit


Comment:

 How about `get_pages()`? It does use caching: [source:tags/3.9.1/src/wp-
 includes/post.php#L4162].

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


More information about the wp-trac mailing list