[wp-trac] [WordPress Trac] #37114: Allow short-circuiting `get_post_class` for performance
WordPress Trac
noreply at wordpress.org
Fri Jun 17 04:06:51 UTC 2016
#37114: Allow short-circuiting `get_post_class` for performance
-------------------------------+------------------------------------
Reporter: bordoni | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: template, performance
-------------------------------+------------------------------------
Comment (by peterwilsoncc):
I'd like to see a proof of concept for the performance issues before
continuing.
I ran a
[https://gist.github.com/peterwilsoncc/ebba5506f144137a48cfc54bae776b6f
cut down loop] on trunk displaying 34 posts on the blog listing page
(home) and there was no difference with or without the `post_class`
function. In both cases there were 22 queries on the page.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37114#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list