Reducing the number of WordPress Revisions
WordPress saves copies of your content every time you update a page or a post, and auto-save revisions are taken while you are editing content too. These ‘revisions’ are then displayed towards the bottom of the page when you are viewing or editing your content, and can be used to compare changes between 2 different versions, to see who made changes to your content (in a multi-author site), and to restore to a previous version of your content if you have really messed up.
This is really useful, but the overhead in your WP database can get quite high if you frequently edit posts and pages, as there is no automatic culling of revisions built in to a WordPress install.
There are a few ways you can keep the number of revisions in check. The way I prefer is to edit your config.php file to include the following couple of lines…
No comments yet.