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!!
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!!
admin > config > logging > Display The Page Parse Time
Zen-Venom Get Bitten
tried that and for some reason it doesnt show in my footer?
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.
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
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?
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
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...Originally Posted by gezuvor
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
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 replacingwithCode:<?php echo $db->queryTime(); ?>where the 5 represented how many digits after the decimal I wanted to display...Code:<?php echo round($db->queryTime(),5); ?>
Bookmarks