Disable Autosave On WordPress Multisite

Disabling autosave can significantly reduce server load, certainly if you haven’t changed the constant in wp-config.php from default.

On PrimaryBlogger we have a lot of concurrent users, regardless of the time you set it always appears to try and autosave on “New Post/Edit Post” page load.

Network activating the below script I’ve created has lowered our overall server load by 0.5, which might not seem a lot but that’s freeing a lot of resources and allowing the new post page to load in half the time – you can also publish now straight away instead of waiting for the “Publish” button to activate.

Here’s the code:

function disabler_kill_autosave(){
add_action( 'wp_print_scripts', 'disabler_kill_autosave' );

Leave a Reply

Your email address will not be published. Required fields are marked *