[wp-trac] [WordPress Trac] #8874: wp_list_pages consume a lot of memory

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 17 02:19:55 GMT 2009


#8874: wp_list_pages  consume a lot of memory
--------------------------+-------------------------------------------------
 Reporter:  horaciod      |       Owner:  anonymous
     Type:  enhancement   |      Status:  new      
 Priority:  normal        |   Milestone:  2.7.1    
Component:  Optimization  |     Version:           
 Severity:  normal        |    Keywords:           
--------------------------+-------------------------------------------------
 When we use wp_list_pages in installatiosn with lots of pages (in my case
 106 with a lot of text inside ) this function use get_pages (posts.php)
 which has a get_results of the posts completes with a "select *" but only
 id,post_title, post_parent is needed.
 Maybe you can use a nuew option to wp_list_pages or get_pages with the
 list of fields to retrieve.
 I´m making a patch but first i´m studing the code rules of wordpress.
 This Affects a wpdtree plugin and other which use get_pages. In my case
 this select break the connection with mysql in a Shared web server.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8874>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list