ID #290

How can I optimize my X-cart store?

Applies to: Grid System

X-Cart is a commercial ecommerce package sold and supported by Qualiteam.

Please reference the list of optimization techniques from Qualiteam.

  • Set up an HTML Catalog.
  • X-Cart archives tracking statistics in your store's database. In time, these stats use millions of rows and slow down your database queries. If you clear the statistics, you will notice a significant boost in store performance.

    To clear the statistics:
    Login to your store administration area.

    Click "Summary" in the Administration panel.

    On the next page that loads, scroll down to the "Statistics clearing" heading.

    Check "Clear all tracking statistics" and then click "Apply."

    Clearing the stats may time out because there is so much data. In the case of a timeout, just click "Apply" again.

Last update: 2010-10-04 14:44
Author: FAQ Admin
Revision: 1.3

Digg it! Share on Facebook Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 5 (1 Vote)

completely useless 1 2 3 4 5 most valuable

You can comment this FAQ

Comment of Anonymous:
If you are running x-cart 4x and want to display the load time you can add this to auth.php (in your x-Cart root dir). After if you view the source at the very bottom there will be a comment showing the load times.

Just add this to the top of your auth.php file in the section you wish to check runtimes on.


function func_microtime2()
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);

The times it will show will be the most accurate since the start time is recorded very near the beginning of the execution of your scripts.

This won't work with the html catalog though.
Added at: 2005-08-30 10:36

Comment of Anonymous:
Here's a complete tutorial you can use to speed up your installation:
Added at: 2006-04-12 23:12

Comment of Anonymous:
There is no need to hardcode additional functions into X-Cart to implement the benchmark.

1. In X-Cart v4.0.x:

Append the GET variable benchmark=Y to the store URL, so it will look like:
If you open the source of this page you'll see benchmarking report at the very end of the page.

2. In X-Cart 4.1.x:

Edit file 'top.inc.php' and replace the line:

define('BENCH', false);

with this one:

define('BENCH', true);

Additionally replace the line:

define('BENCH_SIMPLE', true);

with this one:

define('BENCH_SIMPLE', false);

You'll see benchmarking report at the bottom of your pages.

Sincerely your,
Qualiteam Support
Added at: 2007-05-03 02:09

Comment of Anonymous:
For X-Cart GOLD 4.1.8, you will need to select Summary, then click on Tools, then scroll down to "Statistics clearing".

Here are the Xcart instructions:
Added at: 2009-11-18 09:01