• Resolved steeleware

    (@steeleware)


    First of all, thanks for the great plugin! I’m occasionally experiencing very slow load times on my web-host and I’m using your plugin to troubleshoot.

    Can you tell me what the num_queries value is and how it differs from queries? I see this message but I don’t understand it: “Different values in num_query and query?”

    Here’s my example – you can see the length of time it took for the page to render is 31.4 seconds.

    Total query time: 411.7ms for 20 queries (0.411673784255981s)
    Total num_query time: 31.583 for 22 num_queries.
    » Different values in num_query and query? – please set the constant define( ‘SAVEQUERIES’, TRUE );in your wp-config.php
    Page generated in 31,446.3ms; (31.4462878704071044921875s); 98.69% PHP; 1.31% MySQL

    When the page loads fast, I don’t see the num_query value:

    Total query time: 15.7ms for 22 queries (0.015749216079712s)
    Page generated in 504.5ms; (0.5045380592346191406250s); 96.88% PHP; 3.12% MySQL

    https://wordpress.org/plugins/debug-objects/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Frank Bueltge

    (@bueltge)

    If you set the constant define( ‘SAVEQUERIES’, TRUE );in your wp-config.php is the difference done.
    The num_query is the all queries and the queries is the count from WP. If you have not set the constant, WP will start later with count the queries.

    Thats all.

    I’m having the same problem.

    define( ‘SAVEQUERIES’, TRUE ); did not work.

    Plugin Author Frank Bueltge

    (@bueltge)

    Maybe you have a plugin o.o. that hook in this process.
    But the difference is not a problem. If you analyze, then it is important, that you focus on one value and compare this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Different values in num_query and query?’ is closed to new replies.