Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Free X-cart Clean Stats Mod

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 12-07-2011, 03:14 PM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,062
 

Default Free X-cart Clean Stats Mod

I just created a new free mod that allows you to set up a cron to regularly clean out your X-cart stats tables:

http://www.bcsengineering.com/store/product.php?productid=348&MMCF_xfCleanStats2

Many of our clients have been using this for years. This allows you to keep your Advanced Statistics on for bestsellers module but keeps the stats tables trimmed down for better performance on the site.

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote

The following 3 users thank BCSE for this useful post:
fmoses (11-20-2012), GMarler (02-28-2012), JWait (12-08-2011)
  #2  
Old 12-08-2011, 05:05 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Free X-cart Clean Stats Mod

I just cloned a link in skin/common_files/single/menu_box.tpl inside the "Tools" section to the clean_stats.php and it works great.

Thanks!
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #3  
Old 12-08-2011, 07:16 PM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,062
 

Default Re: Free X-cart Clean Stats Mod

Quote:
Originally Posted by JWait
I just cloned a link in skin/common_files/single/menu_box.tpl inside the "Tools" section to the clean_stats.php and it works great.

Thanks!

Great! I made the mod so quickly I didn't want to clutter it with how to make links in the various versions of X-cart. I'll add it in if it's really needed but shouldn't be hard for those who already know how to install mods.

Hope it helps!

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #4  
Old 12-09-2011, 04:09 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Free X-cart Clean Stats Mod

I'd set it up as a cron if I knew how.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #5  
Old 12-09-2011, 06:46 AM
 
hooter hooter is offline
 

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default Re: Free X-cart Clean Stats Mod

Quote:
Originally Posted by JWait
I'd set it up as a cron if I knew how.
On most common retail hosting platforms something like this should work.

For your cron job commandline try this:
Code:
cd /home/useraccount/public_html/admin;php -q clean_stats.php


Of course substitute your own proper folder path in the above example.
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote

The following user thanks hooter for this useful post:
JWait (12-09-2011)
  #6  
Old 12-09-2011, 07:23 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,062
 

Default Re: Free X-cart Clean Stats Mod

Quote:
Originally Posted by hooter
On most common retail hosting platforms something like this should work.

For your cron job commandline try this:
Code:
cd /home/useraccount/public_html/admin;php -q clean_stats.php


Of course substitute your own proper folder path in the above example.

Yes we have it set up like this on our sites. Should work for most.

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #7  
Old 02-16-2012, 06:58 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,062
 

Default Re: Free X-cart Clean Stats Mod

Many people don't realize how FAST this will make your site if you have Advanced Statistics on so that you can have Bestsellers. We put it on all of our hosting clients to speed up their site. Gets rid of the slow queries for Advanced Statistics while still allowing Bestsellers to work!

Nice, simple and quick!

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #8  
Old 02-28-2012, 08:34 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,062
 

Default Re: Free X-cart Clean Stats Mod

For some statistics out there. I installed this for a customer last night and their site load time was cut in half!



Love to see things so simple make a site a lot faster.

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:22 PM.

   

 
X-Cart forums © 2001-2020