Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Aug 2006
    Location
    West Virginia
    Posts
    321
    Plugin Contributions
    1

    Default Queries, Query Time, Page Execution Time

    Hello, I see Queries, Query Time, Page Execution Time in ZenCart footers and would like to know how its done or if there is a module out there for this? Thanks!!

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

    Default Re: Queries, Query Time, Page Execution Time

    admin > config > logging > Display The Page Parse Time
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Aug 2006
    Location
    West Virginia
    Posts
    321
    Plugin Contributions
    1

    Default Re: Queries, Query Time, Page Execution Time

    tried that and for some reason it doesnt show in my footer?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Queries, Query Time, Page Execution Time

    please post the contents of your customized tpl_footer.php and tpl_main_page.php files here.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Queries, Query Time, Page Execution Time

    re you sure you set this?

    If the site in your sig this is te view source and there is no code being parsed for the "parse time":
    Code:
    </div>
    <!--bof- parse time display -->
    <!--eof- parse time display -->
    <!--bof- banner #6 display -->
    <!--eof- banner #6 display -->
    </body></html>
    Zen-Venom Get Bitten

  6. #6
    Join Date
    Aug 2006
    Location
    West Virginia
    Posts
    321
    Plugin Contributions
    1

    Default Re: Queries, Query Time, Page Execution Time

    Sorry I couldnt get back sooner but It isnt killing me that this isnt visable I just woundered if there was a setting in the admin I was messing. Thanks for the replyes and info...

    Kobra, yes this is the site in my sig. are you saying those lines arnt in the file?

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Queries, Query Time, Page Execution Time

    Yes that is correct for if set in the admin (and the files are all there and functional as they should be) then the view source should indicate something like this from one of my sites
    Code:
    </div>
    <!--bof- parse time display -->
    <div class="smallText center">Parse Time: 0.291 - Number of Queries: 832 - Query Time: 0.0740792019196</div>
    <!--eof- parse time display -->
    Zen-Venom Get Bitten

  8. #8
    Join Date
    Apr 2007
    Location
    Orange County, CA
    Posts
    88
    Plugin Contributions
    5

    Default Re: Queries, Query Time, Page Execution Time

    Not to drag this thread back from the beyond, but is there a way to truncate the query time to a set number of digits? Something like 0.12345? I get varying values and sometimes it goes out to 12+ digits...

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

    Default Re: Queries, Query Time, Page Execution Time

    Quote Originally Posted by gezuvor
    Not to drag this thread back from the beyond, but is there a way to truncate the query time to a set number of digits? Something like 0.12345? I get varying values and sometimes it goes out to 12+ digits...
    The code could be written to do this but by default ZenCart takes what ever precision the server provides...
    Normally an operating shop does not display the parse as mostly it is for an owner to be able to see if this or that makes any improvement/degradation
    Zen-Venom Get Bitten

  10. #10
    Join Date
    Apr 2007
    Location
    Orange County, CA
    Posts
    88
    Plugin Contributions
    5

    Default Re: Queries, Query Time, Page Execution Time

    Okay, good point Kobra! We have it enabled on our old site and I assumed it was okay to just leave on...

    BTW - I found what I was looking for by replacing
    Code:
    <?php echo $db->queryTime(); ?>
    with
    Code:
    <?php echo round($db->queryTime(),5); ?>
    where the 5 represented how many digits after the decimal I wanted to display...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. High Parse Time And Query Time.
    By cybertai in forum General Questions
    Replies: 6
    Last Post: 18 May 2011, 05:31 PM
  2. Replies: 4
    Last Post: 30 Apr 2009, 03:01 AM
  3. Replies: 4
    Last Post: 29 Sep 2006, 02:24 AM

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