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