[wp-trac] [WordPress Trac] #5303: "Manage > Pages" becomes very slow with hundreds of pages
WordPress Trac
wp-trac at lists.automattic.com
Wed Sep 23 00:27:22 UTC 2009
#5303: "Manage > Pages" becomes very slow with hundreds of pages
--------------------------+-------------------------------------------------
Reporter: MartijnD | Owner: anonymous
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 2.8.5
Component: General | Version: 2.8.4
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+-------------------------------------------------
Comment(by mihai):
After using xdebug I found out that the main problem was the function
get_page_children . I modified this function to something similar to the
idea from http://core.trac.wordpress.org/changeset/6380 decreased the time
to 1 minute.
Now it seems like the rest of the time wordpress tries to update the cache
with all those 7000 pages. If I just remove the call to update_post_caches
in get_posts the load time goes down to 15 seconds. This is finally
acceptable . Why does it need to update the cache for all pages when they
are displayed in admin ?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/5303#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list