May 25, 2020
Limit WordPress Revisions
WordPress Revisions can easily take many entries in the database, and it is very common to have 50+ revisions on a single page. Imagine if you have 100 pages and posts and each has 50+ revisions, it will end up 50,000+ of entries in the database.
What I do is simply add this code to wp-config.php. You may change to number to suite your needs.
define( ‘WP_POST_REVISIONS’, 3 );
Or you can completely Disable the WordPress Post Revisions with this code
define(‘WP_POST_REVISIONS’, false );
Remember the code below needs to be placed above the ‘ABSPATH’ otherwise it won’t work.