Contributions

InfoBoxes (Category Index)
Search: 

Optimize categories box

It is common knowledge that displaying the numbers of products in the categories box (Configuration -> My Store -> Show Category Counts = true) generates a large numbers of queries.
This small contribution slashes the numbers of queries on the front page of the default installation of osCommerce from 83 to 43 (so about two per category, showing the number of products per category) by querying most of the information needed in two queries (total) and storing/retrieving the results in/from an object. It is also used to cut the number of queries for the categories box needed.

Expand All / Collapse All

Optimize categories box v1.2 Jan Zonjee 2 Sep 2007

The large number of queries you encounter in your shop when you have a lot of categories will also slow down your admin/categories.php page. Version 1.2 of this contribution addresses that (not completely, you would also need to install another contribution to really get to a minimum number, see the package).

Optimize categories box v1.1 Jan Zonjee 11 Jun 2007
Performance Evaluation l33t 8 Jun 2007
Optimize categories box Jan Zonjee 26 May 2007

Note: Contributions are used at own risk.