[wp-trac] Re: [WordPress Trac] #3985: _get_cat_children is very inefficient

WordPress Trac wp-trac at lists.automattic.com
Thu Mar 22 06:52:11 GMT 2007


#3985: _get_cat_children is very inefficient
----------------------------------------------+-----------------------------
 Reporter:  ryan                              |        Owner:  charleshooper
     Type:  defect                            |       Status:  assigned     
 Priority:  low                               |    Milestone:  2.2          
Component:  Administration                    |      Version:  2.1.2        
 Severity:  normal                            |   Resolution:               
 Keywords:  2nd-opnion category optimization  |  
----------------------------------------------+-----------------------------
Changes (by charleshooper):

  * keywords:  category optimization => 2nd-opnion category optimization
  * status:  new => assigned
  * owner:  anonymous => charleshooper

Comment:

 Just clarifying some things here -- feel free to correct me if I'm wrong
 in these

 - Syncing the array should be done only when categories are created,
 edited, or deleted
 - A "sanity check" should be done upon access to the Manage Categories
 page. This is how it's done for plugins anyways, so I'm just trying to
 keep our methods consistent.

 On second thought, perhaps instead of a sanity check this could be a good
 time to rebuild the array completely from the database.

 I would also like this array to be storable using Wordpress' built-in
 caching functions.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3985#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list