How to Limit or Disable WordPress Post Revisions
Multi-post revision storage is said to slow down WordPress websites. False. WordPress is smart enough to ignore revisions while rendering the front end, and its MySQL queries are smart enough to not be slowed by revisions. However, post revisions occupy database space. Your posts are revisions, which means that if you have hundreds of posts, you also have hundreds of revisions.
Removing post revisions is a great way to reduce the size of your WordPress database without sacrificing content. Simply open the WordPress wp-config.php file and add the following configuration line above the “/* */” line:
define(‘WP_POST_REVISIONS’, false );
This will only tell WordPress to stop storing new post revisions. Use the Sweep free plugin or another similar plugin to delete all existing ones.
If you don’t want to completely disable WordPress revisions, you can set a limit on how many revisions are saved. Add the following line above the “/* That’s all, stop editing!” in the wp-config.php file. */” line:
define(‘WP_POST_REVISIONS’, 3 );
In the above, you can substitute 3 with the limit of revisions you want to have for each post.