Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Oct 2008
    Posts
    8
    Plugin Contributions
    0

    Default admin/categories.php running super slow...

    Hey all. I have a store with roughly 30K products in it. The front end runs a bit slow, like 2-3 seconds to load up. Im cool with that, its not a big deal.

    But the admin panel is just ridiculously slow. It takes about a minute to access the categories.php page and a minute to do anything on that page. Any idea what I can do to speed this up? Is there a reason this page is running so slow? has anyone optimized this page before?

    Any help would be great. Thanks.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: admin/categories.php running super slow...

    Much of the code enhancements have been for the frontend leaving the admin side as legacy code.
    If yours is taking 3 sec's to load the front, you are on a slow server and will have to contend with the even slower admin side - there are a few admin settings that may help like cat counts off etc

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: admin/categories.php running super slow...

    How many Categories do you have? If you have a lot, turning off the Categories Dropdown for the Go To will help a great deal ...

    There are a number of customizations that can speed up the Admin considerably ...

    Usually, going through the categories.php and products.php and a few other files in the admin and commenting out a few of the bells and whistles can take a 200 second page down to less than 1 second ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Jan 2004
    Posts
    482
    Plugin Contributions
    0

    Default Re: admin/categories.php running super slow...

    Is there a post that tells what bells and whistles to comment out? We are suffering in that categories.php page (it is so slow we are tearing our hair out).

    Quote Originally Posted by Ajeh View Post
    How many Categories do you have? If you have a lot, turning off the Categories Dropdown for the Go To will help a great deal ...

    There are a number of customizations that can speed up the Admin considerably ...

    Usually, going through the categories.php and products.php and a few other files in the admin and commenting out a few of the bells and whistles can take a 200 second page down to less than 1 second ...

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: admin/categories.php running super slow...

    What version of Zen Cart are you using?

    How many Categories do you have?

    How many Products do you have?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Jan 2004
    Posts
    482
    Plugin Contributions
    0

    Default Re: admin/categories.php running super slow...

    Thank you, Ajeh...

    1.3.8a
    262 categories (master and subcats... we have removed some of them so it really isn't that many... many of these are not master categories they only hold linked products)
    Products: 8277
    Products deactivated: 982


    Quote Originally Posted by Ajeh View Post
    What version of Zen Cart are you using?

    How many Categories do you have?

    How many Products do you have?

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: admin/categories.php running super slow...

    Couple things to do here to speed things up ...

    Get a download of v1.3.9e ...

    Compare the files:
    /includes/functions/featured.php
    /includes/functions/specials.php

    Do you use SaleMaker?

    Next, look at the file:
    /admin/includes/modules/category_product_listing.php

    Test turning off the Category Dropdown list and see if it helps with speed ...

    Change the line around 47 from:
    Code:
      if ($_SESSION['display_categories_dropdown'] == 0) {
    to read:
    Code:
      if (false && $_SESSION['display_categories_dropdown'] == 0) {
    To turn off the test for Linked Products which is a heavy load, go down to around line 165 and change:
    Code:
          if (zen_get_products_to_categories($categories->fields['categories_id'], true, 'products_active') == 'true') {
            echo '  ' . zen_image(DIR_WS_IMAGES . 'icon_yellow_on.gif', IMAGE_ICON_LINKED);
          }
    to read:
    Code:
          if (false && zen_get_products_to_categories($categories->fields['categories_id'], true, 'products_active') == 'true') {
            echo '  ' . zen_image(DIR_WS_IMAGES . 'icon_yellow_on.gif', IMAGE_ICON_LINKED);
          }
    I would first try the changes to the specials.php and featured.php ... then try the other changes ...

    See if you need more than that for speed ...

    NOTE: v1.3.9e is out and much faster on several things ...

    If you do not upgrade, make sure you have all Security Patches and Updates:
    http://www.zen-cart.com/forum/showthread.php?t=131115

    and that you have added all Known Bug Fixes:
    http://www.zen-cart.com/forum/showthread.php?t=82619
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  8. #8
    Join Date
    Jan 2004
    Posts
    482
    Plugin Contributions
    0

    Default Re: admin/categories.php running super slow...

    Looks like a great improvement! Thank you!

    We do use salemaker about once a month. I cleaned out that table so there is only one sale in there now (i duplicated the table before i did that to save what we had done previously)

    Are there queries (that are already out there) that will look through either products or orders and show if there are orphaned lines in the database? Recently when a person was adding a product, it failed a few times due to how she formatted her html for the description. That left us with about 20 products to clean out of the database. I suspect that might have caused us a problem in the product table (and subsequently the related tables)

    Quote Originally Posted by Ajeh View Post
    Couple things to do here to speed things up ...

    Get a download of v1.3.9e ...

    Compare the files:
    /includes/functions/featured.php
    /includes/functions/specials.php

    Do you use SaleMaker?

    Next, look at the file:
    /admin/includes/modules/category_product_listing.php

    Test turning off the Category Dropdown list and see if it helps with speed ...

    Change the line around 47 from:
    Code:
      if ($_SESSION['display_categories_dropdown'] == 0) {
    to read:
    Code:
      if (false && $_SESSION['display_categories_dropdown'] == 0) {
    To turn off the test for Linked Products which is a heavy load, go down to around line 165 and change:
    Code:
          if (zen_get_products_to_categories($categories->fields['categories_id'], true, 'products_active') == 'true') {
            echo '  ' . zen_image(DIR_WS_IMAGES . 'icon_yellow_on.gif', IMAGE_ICON_LINKED);
          }
    to read:
    Code:
          if (false && zen_get_products_to_categories($categories->fields['categories_id'], true, 'products_active') == 'true') {
            echo '  ' . zen_image(DIR_WS_IMAGES . 'icon_yellow_on.gif', IMAGE_ICON_LINKED);
          }
    I would first try the changes to the specials.php and featured.php ... then try the other changes ...

    See if you need more than that for speed ...

    NOTE: v1.3.9e is out and much faster on several things ...

    If you do not upgrade, make sure you have all Security Patches and Updates:
    http://www.zen-cart.com/forum/showthread.php?t=131115

    and that you have added all Known Bug Fixes:
    http://www.zen-cart.com/forum/showthread.php?t=82619

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: admin/categories.php running super slow...

    If you do use SaleMaker, then you will want to also check if the changes in:
    /includes/functions/salemaker.php

    help as well ...

    There are a lot of checks that can be done on the database tables but they need to be checked and double checked before cleaning up the records ...

    Common things to watch for are that you have matches for:
    products
    products_description

    categories
    categories_description

    Checking things such as ...

    all products_id in the products table are in the products_to_categories table ...

    all categories_id in the products_to_categories table are in the categories table ...

    all master_categories_id in the products table are in the categories table ...

    There are a lot more but this is a start ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10
    Join Date
    Jan 2004
    Posts
    482
    Plugin Contributions
    0

    Default Re: admin/categories.php running super slow...

    I will do the Salemaker compare this morning, too... thank you!

    Regarding the comparison... I was in the hopes that there would be a query that would left join and show nulls where there are holes for doublechecking the database.

    Quote Originally Posted by Ajeh View Post
    If you do use SaleMaker, then you will want to also check if the changes in:
    /includes/functions/salemaker.php

    help as well ...

    There are a lot of checks that can be done on the database tables but they need to be checked and double checked before cleaning up the records ...

    Common things to watch for are that you have matches for:
    products
    products_description

    categories
    categories_description

    Checking things such as ...

    all products_id in the products table are in the products_to_categories table ...

    all categories_id in the products_to_categories table are in the categories table ...

    all master_categories_id in the products table are in the categories table ...

    There are a lot more but this is a start ...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139h admin suddenly super slow, web store randomly slow
    By Swingin' Sparrow in forum General Questions
    Replies: 44
    Last Post: 13 Mar 2013, 07:50 AM
  2. My v1.3.8a running SUPER slow?
    By kirkbross in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 13 Jan 2010, 09:26 AM
  3. Jrox admin running slow
    By swamyg1 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Jul 2009, 03:34 AM
  4. Site & Admin Being Super Slow Today
    By DPM in forum General Questions
    Replies: 2
    Last Post: 24 Apr 2008, 12:24 PM
  5. Site running fine, admin section extremely slow
    By swingandmiss in forum General Questions
    Replies: 8
    Last Post: 26 Jan 2008, 10:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg