WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #19995, comment 4


Ignore:
Timestamp:
08/25/13 15:33:30 (18 months ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19995, comment 4

    initial v1  
    1010 
    1111If the issue is your queries are taking too long then in your wp-config.php file, add this line of code to the top: 
    12  
     12{{{ 
    1313define('SAVEQUERIES', true); 
    14  
     14}}} 
    1515Then, in the theme's footer.php file, you can do this to dump all the queries and how long they took: 
    16  
     16{{{ 
    1717if (SAVEQUERIES) { 
    1818global $wpdb; 
     
    2121echo '\n--!>'; 
    2222} 
    23  
     23}}} 
    2424Then looking at the source of the page will show all the queries and a number showing how long they took. 
    2525 
     
    2929 
    3030Remove or comment out this line from wp-cron.php: 
     31{{{ 
    3132if ( $_GET['check'] != wp_hash('187425') ) 
    3233exit; 
    33  
     34}}} 
    3435Try these first but there may be other things you can try if that doesn't work. 
    3536