ovizii
12/4/2013 - 2:28 PM

Display # of queries and exec time

Display # of queries and exec time

//add this to wp-config.php
define( 'SAVEQUERIES', true );

//add this to footer.php
<?php
if ( current_user_can( 'administrator' ) ) {
    global $wpdb;
    echo "<pre>";
    print_r( $wpdb->queries );
    echo "</pre>";
}
?>