{"id":965,"date":"2012-06-01T16:18:07","date_gmt":"2012-06-01T15:18:07","guid":{"rendered":""},"modified":"2012-06-01T16:18:07","modified_gmt":"2012-06-01T15:18:07","slug":"disable-autosave-on-wordpress-multisite","status":"publish","type":"post","link":"https:\/\/ed.gs\/2012\/06\/01\/disable-autosave-on-wordpress-multisite\/","title":{"rendered":"Disable Autosave On WordPress Multisite"},"content":{"rendered":"
Disabling autosave can significantly reduce server load, certainly if you haven’t changed the constant in wp-config.php from default.<\/p>\n
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.<\/p>\n
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.<\/p>\n
Here’s the code:<\/p>\n
function disabler_kill_autosave(){\nwp_deregister_script('autosave');\n}\n \nadd_action( 'wp_print_scripts', 'disabler_kill_autosave' );<\/pre>\n","protected":false},"excerpt":{"rendered":"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 […]<\/p>\n","protected":false},"author":2,"featured_media":3565,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false},"categories":[75],"tags":[],"yoast_head":"\n
Disable Autosave On WordPress Multisite - E<\/title>\n\n\n\n\n\n\n\n\n\n\n\t\n\t\n\t\n\n\n\t\n\t\n\t\n