You can follow this thread about speed optimization:
http://forums.oscommerce.com/topic/119077-a-store-speed-optimization-in-progress/
Latest News: (loading..)
Massively Speed up Site and Reduce Server Load
Started by monkeymoo1, May 08 2006, 21:42
21 replies to this topic
#21
Posted 03 September 2011, 23:01
#22
Posted 29 September 2011, 15:18
nutbolt, on 23 May 2011, 12:01, said:
This works in reducing a query in OSC 2.3.1 as well
in Catalog\includes\modules\boxes\bm_categories.php around line 61 comment out (using //) the following:
in Catalog\includes\functions\general.php around line 421 comment out the following:
IMHO a waste of a query just to show a silly ..> after the subcategory and it slows your site down especially if you have loads of subcategories, the query has to array all of them first.
in Catalog\includes\modules\boxes\bm_categories.php around line 61 comment out (using //) the following:
// if (tep_has_category_subcategories($counter)) {
// $categories_string .= '->';
// }
in Catalog\includes\functions\general.php around line 421 comment out the following:
////
// Return true if the category has subcategories
// TABLES: categories
// function tep_has_category_subcategories($category_id) {
// $child_category_query = tep_db_query("select count(*) as count from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$category_id . "'");
// $child_category = tep_db_fetch_array($child_category_query);
//
// if ($child_category['count'] > 0) {
// return true;
// } else {
// return false;
// }
// }
IMHO a waste of a query just to show a silly ..> after the subcategory and it slows your site down especially if you have loads of subcategories, the query has to array all of them first.














