How to Disable and Limit WordPress Revisions: need the speed
If your a sticker for speed, and lets face it you have to be now a days to get a high score on Google page speed insights test. (Your can test your websites speed here.) So I digress! Your wordpress database can get quite large after a time if you are allowing wordpress revisions for all your pages. The reason is that wordpress ha to store all your page versions, so this can soon get out of hand. Compressing your database every few weeks and running a cron job is a good solution, but won’t always be enough. If you’re an avid blogger and creating tonnes of new blogs every week, then I recommend the following.
Open up your wp-config file in the root of your wordpress directory.
Add this line to the wp-config to limit the number of revisions to five. This should be enough to go back historically.
Step 3: Optional
You can also add a line to change the default autosave interval from 60 seconds (1 minute) to 300 seconds (5 mins).
define('AUTOSAVE_INTERVAL', 300); // seconds
note: This needs to be inserted above the ‘ABSPATH’ statement otherwise it won’t work correctly