[wp-trac] [WordPress Trac] #15805: get_page_by_title() lacks caching

WordPress Trac noreply at wordpress.org
Fri Aug 23 13:46:50 UTC 2013


#15805: get_page_by_title() lacks caching
-------------------------------------+----------------------
 Reporter:  Viper007Bond             |       Owner:
     Type:  enhancement              |      Status:  closed
 Priority:  normal                   |   Milestone:
Component:  Performance              |     Version:  3.1
 Severity:  normal                   |  Resolution:  wontfix
 Keywords:  has-patch needs-testing  |
-------------------------------------+----------------------
Changes (by nacin):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  3.7 =>


Comment:

 I agree with tollmanz. Going further, I think the whole idea of fetching
 something by its title is wrong. It's not unique, or particularly
 identifying, and the field doesn't have an index. This is better left to
 WP_Query itself (i.e. a search), and I could even go for deprecating this
 in favor of a (new?) query variable in WP_Query.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/15805#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list