Results 1 to 3 of 3
  1. #1

    Default Page Parse times configuration missing/removed?

    [Note: remember to include site URL, ZC version, list of plugins, PHP version, etc ... read the Posting Tips shown above for information to include in your post here.
    And, remove this comment before actually posting!]

    Hi Guys,

    Using zc 1.5.7c I remember there was a page parse time setting that showed some info in the footer on page reload. However, I cant find it anywhere. Not sure if I'm missing something somewhere or it has been removed.

    If it's gone is there a plugin or another good way to see these metrics?

    Thanks!

  2. #2

    Default Re: Page Parse times configuration missing/removed?

    Whoops, Sorry! I have just found another thread. It has been removed since 1.5.7

    The question seems to be what is the best method for displaying these metrics, I am trying to compare site/database speed on two different servers and would like some actual numbers I can forward to my hosting company

    Thanks

  3. #3
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,684
    Plugin Contributions
    9

    Default Re: Page Parse times configuration missing/removed?

    do you know anything about the observer process in ZC?

    create this file and place it in the admin observer directory to see them on the admin side or store facing observer directory to see on the store side. one or the other or both. as such:

    includes/classes/observers/auto.parsetime_display.php
    YOUR_ADMIN/includes/classes/observers/auto.parsetime_display.php


    PHP Code:
    <?php
    /**
     * Designed for v1.5.7
     *
     * @copyright Copyright 2003-2020 Zen Cart Development Team
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     */

    class zcObserverParsetimeDisplay extends base
    {
        public function 
    __construct()
        {
            
    $this->attach($this, [
                
    'NOTIFY_ADMIN_FOOTER_END',
            ]);

            
    // do not register/attach for catalog-side if not enabled
            // if (!defined('DISPLAY_PAGE_PARSE_TIME') || DISPLAY_PAGE_PARSE_TIME != 'true') {
            //     return;
            // }

            
    $this->attach($this, [
                
    'NOTIFY_FOOTER_END',
            ]);
        }

        public function 
    update(&$class$eventID$paramsArray)
        {
            
    $time_start explode(' 'PAGE_PARSE_START_TIME);
            
    $time_end explode(' 'microtime());
            
    $parse_time number_format(($time_end[1] + $time_end[0] - ($time_start[1] + $time_start[0])), 3);

            
    $this->output($parse_time);
        }

        public function 
    output($parse_time)
        {
            global 
    $db;
    ?>
            <div class="smallText center">Parse Time: <?php echo $parse_time?> - Numbename it r of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo round($db->queryTime(), 5); ?></div>
    <?php
        
    }
    }
    best.
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 

Similar Threads

  1. v153 Parse times
    By bam3312 in forum General Questions
    Replies: 2
    Last Post: 28 Aug 2014, 11:08 PM
  2. Front Page Only: SLOOOW Parse Times
    By ts232 in forum General Questions
    Replies: 1
    Last Post: 17 Oct 2011, 04:12 PM
  3. Slow parse times
    By vortextennis in forum General Questions
    Replies: 3
    Last Post: 16 Sep 2009, 04:19 PM
  4. High Parse Times - Query times OK
    By BodyJewels in forum General Questions
    Replies: 9
    Last Post: 25 Jun 2009, 07:19 AM
  5. SLOW site - parse times??
    By BDCreations in forum General Questions
    Replies: 4
    Last Post: 19 Aug 2008, 08:55 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