[wp-trac] [WordPress Trac] #37114: Allow short-circuiting `get_post_class` for performance
WordPress Trac
noreply at wordpress.org
Fri Aug 31 20:10:00 UTC 2018
#37114: Allow short-circuiting `get_post_class` for performance
-------------------------------+------------------------------------
Reporter: bordoni | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.2
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses: template, performance
-------------------------------+------------------------------------
Changes (by desrosj):
* keywords: has-patch dev-feedback needs-testing => has-patch commit
Comment:
Unless a better solution is proposed, I am going to recommend that
[attachment:"37114.2.diff"] is committed allowing classes for terms
assigned to a post in specific taxonomies to be excluded. While this does
not directly solve the performance issue caused by priming the post term
cache when a large number of taxonomies are assigned to the posts being
displayed, it gives developers a little more flexibility.
A combination of removing taxonomies from displaying in post `class`
attributes, disabling post term cache priming, and managing the
`public`/`private` property of taxonomies, etc. can be used to tune
performance. [31271] is a benefit for a large majority of scenarios for
most installs, so I don't think that should be reverted.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37114#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list