All post revisions are stored in your WordPress database. Due to this, many users worry that too many revisions can slow down their websites.
It is not true.
WordPress skips post revisions when making database calls on the front end. It only looks for revisions on the post edit screen, or when you are actually browsing revisions.
You can still control and limit post revisions in WordPress. We’ll show you two different methods to do that you can choose one that best suits you.
1. Limit post revisions in WordPress using plugin
The easiest way to manage WordPress post revisions is by using a plugin. This allows you to control revisions from the WordPress admin area.
First thing you need to do is install and activate the WP Revisions Control plugin. For more details, see our step by step guide on how to install a WordPress plugin.
Upon activation, you need to visit Settings » Writing page and scroll down to WP Revisions Control section.
From here you need to enter the number of revisions you want to store for each post type and then click on the ‘Save Changes’ button to store your settings.
WP Revisions Control will now limit the post revisions stored in your WordPress database.
The plugin also allows you to delete revisions for an individual post. Simply edit the post where you want to delete revisions and scroll down below the editor.
You can limit the revisions for this post only or delete them by clicking on the ‘Purge these revisions’ button.
2. Limit WordPress post revisions manually
WordPress allows you to control how many revisions you want to keep for an article. To limit post revisions, simply add this code to your WordPress site’s wp-config.php file.
Tables can't be imported directly. Please insert an image of your table which can be found here.
1
Don’t forget to replace 10 with the number of revisions you want to keep for each post.