If you have a wordpress blog with hundreds of posts per day, you might of realized the large amount of wasted resources that are being consumed to produce the “title” tag for each day link. When you hover your mouse over a particular day on the calender, you will see a list of all the posts in that day. If you have 30 days, and 100 posts per day, your querying, and listing 3000 post titles to make that stupid calender widget.

To fix this, all you have to do is comment out the following code in

wp-includes/general-template.php

Go to line 1060, and comment out the following

/**
$ak_titles_for_day = array();
	$ak_post_titles = $wpdb->get_results("SELECT ID, post_title, DAYOFMONTH(post_date) as dom "
		."FROM $wpdb->posts "
		."WHERE YEAR(post_date) = '$thisyear' "
		."AND MONTH(post_date) = '$thismonth' "
		."AND post_date < '".current_time('mysql')."' "
		."AND post_type = 'post' AND post_status = 'publish'"
	);
        **/

Related Posts