WordPress.org

Ready to get started?Download WordPress

Forums

Fold Page List working *extremely* slow, too many queries! (2 posts)

  1. Uolter
    Member
    Posted 6 years ago #

    Hello,

    I'm building a website using WordPress as a CMS and the "Fold Page List" plugin is exactly what I need.

    It works, but it is *extremely* slow!

    With the plugin turned OFF, the deepest page (third level)...

    <!-- 22 queries. 0.862 seconds. -->

    With the plugin torned ON, the deepest page (third level)...

    <!-- 294 queries. 8.342 seconds. -->

    That's a lot!

    This is the code that I'm using...

    <?php
    if (function_exists('wswwpx_fold_page_list'))
    {
    $g_page_id = $wp_query->get_queried_object_id();
    $ancestorIDs = _wswwpx_page_get_ancestor_ids($g_page_id);
    wswwpx_fold_page_list('sort_column=menu_order&title_li=&child_of='.$ancestorIDs[1]);
    }
    else
    {
    wp_list_pages('title_li=&sort_column=menu_order' );
    }
    ?>

    This is (more or less) the structure of the website:

    Home
    - Who we are
    - Blog
    - Activities
    - - First project
    - - - 2007
    - - - 2006
    - - - 2005
    - - Second project
    - - - 2007
    - - - 2006
    - - Third project
    - - - 2007
    - - - 2006
    - - - 2005
    - - - 2004
    - - - 2003
    - - - 2002
    - - - 2001
    - - - 2000
    - - - 1999
    - - - 1998
    - - - 1997
    - - - 1996
    - - - 1995
    - - - 1994
    - - - 1993
    - - - 1992
    - - Fourth project
    - Other stuff
    - - Another project
    - - Another project
    - Contacts
    - Newsletter

    Am I doing something wrong?

    Is there anything that I can do to improve the performance?

    Thank you

    Uolter

  2. hpftech
    Member
    Posted 6 years ago #

    I'm also interested in this issue - since it looks like it may be related to the number of child pages.

Topic Closed

This topic has been closed to new replies.

About this Topic