[wp-trac] [WordPress Trac] #21279: get_pages() does not clear cache items when non-Page hierarchical post types are updated

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 20 04:33:20 UTC 2012


#21279: get_pages() does not clear cache items when non-Page hierarchical post
types are updated
------------------------------+------------------
 Reporter:  markjaquith       |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  high              |   Milestone:  3.5
Component:  Cache             |     Version:
 Severity:  major             |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+------------------
Changes (by nacin):

 * keywords:  has-patch 2nd-opinion => has-patch commit


Comment:

 As an enhancement, we should have post-type-specific buckets, and multiple
 post types into a general bucket. Or, ideally, get_pages()'s unique flags
 (child_of, exclude_tree, etc.) move into WP_Query, which get_pages() could
 then wrap like get_posts(). #12821.

 Hence, [attachment:21279.diff] is a good approach at this juncture.

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


More information about the wp-trac mailing list