Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2012
    Posts
    412
    Plugin Contributions
    0

    Default Excessive Admin Loading Time

    I'm experiencing excessive loading times for admin after entering credentials and clicking submit. Times of two to three minutes are common. Occurs on my development system and live test system. The main culprit appears to be gstatic.com which is loaded in index_dashboard.php and stats_sales_report_graphs.php. Is anyone else seeing this behavior?

    Although not a major contributor to loading times, there are many javascript files loaded such as jquery-3.5.1.min.js, jquery-ui.min.js, jquery-ui-i18n.min.js, jAlert.min.js, jTimeout.min.js, and bootstrap.min.js. Are any of these redundant and could be eliminated?

    Dave

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,478
    Plugin Contributions
    88

    Default Re: Excessive Admin Loading Time

    That long load-time can be exacerbated if you have multiple plugins that are 'calling home' to see if there is a more recent version available
    (think SiteMap XML, for instance).

    Combined with the setting for My Store :: Show if version update available (which also performs that look-up), that can be quite the extension to the login time.

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,686
    Plugin Contributions
    123

    Default Re: Excessive Admin Loading Time

    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,686
    Plugin Contributions
    123

    Default Re: Excessive Admin Loading Time

    Here's another fix you can backport to your version:
    https://github.com/zencart/zencart/pull/4172
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #5
    Join Date
    Jun 2012
    Posts
    412
    Plugin Contributions
    0

    Default Re: Excessive Admin Loading Time

    Thanks everyone for the hints.
    Dave

  6. #6
    Join Date
    Jun 2007
    Posts
    474
    Plugin Contributions
    2

    Default Re: Excessive Admin Loading Time

    Even though it is a neat addition, I find the admin dashboard (but not all admin pages) causes a lot of load lag.

    One thing to test is if you remove most of the dashboard does the page load delay go away (just don't tell swguy I made that suggestion).

    To test whether the issue is with certain dashboard contents, try changing admin/index_dashboard.php to just:
    Code:
    <?php
    /**
     * @copyright Copyright 2003-2020 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: Erik Kerkhoven 2020 Jun 17 Modified in v1.5.7 $
     */
    
    if (empty($currencies)) {
        require_once DIR_WS_CLASSES . 'currencies.php';
        $currencies = new currencies();
    }
    
    ?>
    <!doctype html>
    <html <?php echo HTML_PARAMS; ?>>
      <head>
        <?php require DIR_WS_INCLUDES . 'admin_html_head.php'; ?>
        <!--Load the AJAX API FOR GOOGLE GRAPHS -->
        <script src="https://www.gstatic.com/charts/loader.js" title="google_graphs_api"></script>
        <style>
          /* #coltwo div.row span.left { float: left; text-align: left; width: 50%; white-space: nowrap; }*/
          #colthree div.row span.left { float: left; text-align: left; width: 50%; white-space: nowrap; }
          #div.row span.center { margin-right: 30px; }
          .indented { padding-left: 5%; margin-right: 5%;}
          div.first { float: left; width: 90px; }
          div.col { float: left; width: 18%; }
        </style>
      </head>
      <body class="indexDashboard">
        <!-- header //-->
        <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
        <!-- header_eof //-->
    
        <?php
        $notifications = new AdminNotifications();
        $availableNotifications = $notifications->getNotifications('index', $_SESSION['admin_id']);
        require_once(DIR_WS_MODULES . 'notificationsDisplay.php');
        ?>
    
        <div id="colone" class="col-xs-12 col-sm-6 col-md-4 col-lg-4">
    
    
    
        </div>
        <div id="coltwo" class="col-xs-12 col-sm-6 col-md-4 col-lg-4">
    
    
    
        </div>
        <div id="colthree" class="col-xs-12 col-sm-6 col-md-4 col-lg-4">
    
    
    
        </div>

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,686
    Plugin Contributions
    123

    Default Re: Excessive Admin Loading Time

    Quote Originally Posted by lindasdd View Post

    One thing to test is if you remove most of the dashboard does the page load delay go away (just don't tell swguy I made that suggestion).
    LOL. Don't hesitate to make a change on my behalf! Make a backup and go for it!
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. shop not loading or loading after long time.
    By geel in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 11 Jul 2011, 05:46 PM
  2. Loading Time Issues
    By skiniemini in forum General Questions
    Replies: 7
    Last Post: 5 Jun 2009, 06:12 AM
  3. Site loading time
    By confused_aswell in forum General Questions
    Replies: 2
    Last Post: 1 Jun 2008, 06:15 AM
  4. Excessive path slashes within Admin pages?
    By gjamison in forum Installing on a Windows Server
    Replies: 4
    Last Post: 19 Aug 2007, 04:22 AM
  5. Repeat time out loading index
    By rush_woman in forum General Questions
    Replies: 3
    Last Post: 10 Jul 2007, 07:59 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR