• I upgraded to 2.5 and some templates I have that call wp_list_pages() now go much slower than they did with 2.3. I have 1000+ pages in a heirarchy, and if I try to list the complete heirarchy, I get a fatal error with maximum execution time exceeding 30 seconds. If I remove the wp_list_pages() (or reduce the depth), it error goes away. I should also say that I did not have this problem before the upgrade.

    I see that wp_list_pages() was supposed to be improved/faster in 2.5, so I’m a little puzzled that this has started happening on the upgrade.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    I haven’t examined all the new code in 2.5 yet, but my experience so far is that it’s slower for me also on my larger blogs.

    In what manner are you wanting to list the pages? One of my blogs has 5000+ categories and I had to write code from scratch to be able to display them. I’d be happy to help you out in a similar manner if you give me the specifics.

    Thread Starter gwark

    (@gwark)

    Thank you, I would appreciate some help.

    The top of the heirarchy is at
    https://www.sitkanature.org/life/

    Right now I’m just using wp_list_pages() one level deep on that top page (for some reason it seems to go faster on lower levels, even when there are still a lot of children).

    There are a couple of things I would like to do. Most importantly, I would like to be able to show all the children of the current page. Right now that seems to work (in varying degress of slowness) for all but the top level just using wp_list_pages().

    The second thing I would like to do is be able to include only pages with a certain custom field. In this case, the pages are informational pages on species in my area. Ideally I would like to pull up all the children of the current page which I consider Documented (which I indicate in a custom field). One wrinkle to this is that it would also be helpful to include their parents up to the current page (as the parents are are higher groupings, I don’t consider them documented, or not, though I suppose I could, if that would make things easier).

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_list_pages slow on upgrade’ is closed to new replies.