I am currently having an issue with memory when my site tries to generate a tree of child pages. to my understanding query is too large (WP has 60000 pages)
following is code i am using
?php global $post;
wp_list_pages( array(
'child_of' => $post->ID, // Only pages that are children of the current page
'depth' => 1 , // Only show one level of hierarchy
'sort_order' => 'asc',
'title_li' =>$post->post_title
));
?>
Is there any additional arguments i can add to make the query smaller or is there any better way of displaying a list of child pages?
Thank you in advance.