User: jaza Branch: HEAD Date: Sun, 02 Apr 2006 05:35:36 +0000 Modified files: /modules/category category.inc category.module Log message: - #47718: PHP timeout when accessing category pages, and when the 'show prev, next, and up links' setting in category_display is enabled. This problem was occurring if multiple containers (say, 5+), all with a large amount of categories (say, 500+), were present on a site. The tree-parsing logic in the category system has been refactored: the category_get_trees() function has been removed; and category_get_tree() is now capable of generating a tree for the entire site's category structure, with only one SQL query. Category_get_trees_flat() is now calling category_get_tree() directly (as are several other functions), and nav links are being generated much more efficiently (tested with 5,000+ categories on a dev box). - It is still possible for a timeout to occur with nav links enabled, but it is much less likely. An extremely large number of categories and containers would now be needed for this to happen. Links: http://cvs.drupal.org/diff.php?path=contributions/modules/category/category.... http://cvs.drupal.org/diff.php?path=contributions/modules/category/category....