Support

Home Forums Event Espresso Premium queries in x seconds, using x MB memory

queries in x seconds, using x MB memory

Posted: November 22, 2013 at 2:53 pm


lhammond

November 22, 2013 at 2:53 pm

When I view the page source of our pages, I see data inside an HTML comment showing how many queries were run in x seconds and the amount of memory used, plus a list of all the files in the templates folder. A couple of questions:

1) I can’t remember how this got there – Is this output generated by a debug setting that I have forgotten to turn off on my live site?

2) Could showing this info in the pages be slowing things down at all?

3) Many of my pages report hundreds of queries. That seems excessive to me! e.g.: 365 queries in 0.478 seconds, using 34.18MB memory – Are these kinds of numbers normal?

I’m working on optimizing our site because we have had performance problems. This is great data to have! But I want to make sure I’m barking up the right tree. Can anybody help me understand this better? Thanks!


Josh

  • Support Staff

November 22, 2013 at 3:10 pm

Event Espresso puts those there by default. Displaying that information would not be slowing your site down. If you look near the end of event-espresso/includes/functions/admin.php you’ll find the two functions that add the html comments that display this info via the wp_footer action. You can remove them from the wp_footer action if you’d like.

365 queries may be normal depending on the context of what’s on the page. It can vary depending on the theme, number of plugins, and the content that’s getting loaded up.

The support post ‘queries in x seconds, using x MB memory’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso