[wp-trac] [WordPress Trac] #16574: Lazy load ancestors

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 4 13:14:08 UTC 2012


#16574: Lazy load ancestors
-------------------------------------+------------------
 Reporter:  nacin                    |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  3.4
Component:  Performance              |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------

Comment (by nacin):

 Doesn't seem like it would need a new group all together. The key in the
 posts cache group could simply be ancestors-$id.

 That said, breaking compatibility with $post->ancestors is definitely not
 something we can get away with right now. Perhaps after the success of
 WP_Theme, someone (me?) might take a crack at a proper WP_Post in a future
 release, which could alleviate back compat issues.

 I did very quick grep in the plugins directory for 'post->ancestors' and
 stopped it after seeing at least 50 plugins (100s of instances) using it.

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


More information about the wp-trac mailing list