Categories load performance slow after 2.5 update
-
Hi,
We have a site recently upgraded to 2.5 version and we are having this error on categories load:
Fatal error: Maximum execution time of 30 seconds exceeded in /home/marujeo/public_html/wp-includes/classes.php on line 422
After a little research, it seems that having 999 categories affects to the display_element function and walk method for loading the categories tree.
We have commented these lines as a patch and we have the site working now, but we are not able of creating new categories ??
// flat display /*if ( -1 == $max_depth ) { $empty_array = array(); foreach ( $elements as $e ) $output = $this->display_element( $e, $empty_array, 1, 0, $args, $output ); return $output; }*/
/*foreach ( $top_level_elements as $e ) $output = $this->display_element($e,$children_elements $max_depth,0,$args,$output ); /* * if we are displaying all levels, and remaining children_elements is not empty, * then we got orphans, which should be displayed regardless */ /*if ( ( $max_depth == 0 ) && sizeof( $children_elements ) > 0 ) { $empty_array = array(); foreach ( $children_elements as $orphan_e ) $output = $this->display_element( $orphan_e, $empty_array, 1, 0, $args, $output ); }*/
Any ideas?
Thanks
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Categories load performance slow after 2.5 update’ is closed to new replies.