[wp-trac] [WordPress Trac] #24011: Consider hiding post title for "Status" and "Aside" formats and autogenerating
WordPress Trac
noreply at wordpress.org
Thu Apr 25 17:16:05 UTC 2013
#24011: Consider hiding post title for "Status" and "Aside" formats and
autogenerating
----------------------------+--------------------
Reporter: markjaquith | Owner:
Type: task (blessed) | Status: new
Priority: high | Milestone: 3.6
Component: Post Formats | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch |
----------------------------+--------------------
Comment (by kovshenin):
It looks like the function is too heavy and `the_title` filter is called a
bazillion times in a request. Seems like `get_post()` and
`get_post_format()` are causing cache hits. [attachment:24011.8.diff]
implements a little internal cache with a static array. Here are some
measurements I took:
||||Cache hits||Increase||
||No filter||2174||0%||
||r24043||2398||10.30%||
||[attachment:24011.8.diff]||2194||0.91%||
Feedback appreciated, and @ryan please let me know if this does the trick.
Thanks!
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24011#comment:30>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list