Quantcast
Channel: Katz Web Services » WordPress
Viewing all articles
Browse latest Browse all 17

Bradycardia & Cardiac Arrest for WordPress 3.6

$
0
0

Bradycardia is the resting heart rate of under 60 beats per minute….
Wikipedia

WordPress HeartbeatA new feature in WordPress 3.6 is an upgrade to the autosave functionality that’s been around for years. It’s called “Heartbeat” and it makes sure you have valid authentication credentials, aren’t working on the same post as other people, and more. The problem is that (as it is) it slows web pages down to a grinding halt.

Read the active discussion on WordPress.org about this feature - a lot of people are upset about the CPU load it adds.

Note: I don’t recommend doing these changes on every Admin page. Use sparingly.

Slow Down WordPress 3.6′s Racing Heartbeat

Here’s how to slow down the heartbeat from once every 15 seconds (the default) to once every minute (the max allowed by WordPress):

add_filter( 'heartbeat_settings', 'my_heartbeat_settings' );
function my_heartbeat_settings($settings = array()) {
$settings['interval'] = 60;
return $settings;
}

Cardiac Arrest: Stop the WordPress Heartbeat Altogether

Add this line to your plugin or theme’s functions.php file to kill the heartbeat:

remove_action( 'admin_init', 'wp_auth_check_load' );

I hope this helps your own racing heart that’s been troubled by the heartbeat problem :-)

Image by halfblog.net

The post Bradycardia & Cardiac Arrest for WordPress 3.6 appeared first on KWS Blog.


Viewing all articles
Browse latest Browse all 17

Trending Articles