
How often you use it depends on how often you edit posts. This is useful for a top website with a team of writers constantly posting and editing articles, but it is not necessary for solo bloggers who post a couple of times a week. On the Settings tab is an option to run the plugin on a schedule, such as weekly. In addition to removing revisions, WP-Optimize also deletes junk like comments sent to the trash or marked as spam. Just click the button to optimise your site and after a minute or so, it is done. The default settings are the best ones, so there is no need to change anything. The plugin is from the developers of UpdraftPlus backup plugin and there is an option to automatically make a backup before optimising WordPress. It is very unlikely that anything will go wrong, but a backup is recommended. The best time to use it is just after creating a backup of your website. Select WP-Optimize in the sidebar to access the plugin functions and settings. There are several to choose from and the one with the highest rating and most installations is WP-Optimize.

Click Plugins in the sidebar in WordPress and then click Add New. There is an easier way to do this, but it requires a plugin. Set it to 0 for no revisions if you have never needed them.
Wordpress revisions Pc#
Load it into a text editor like TextWrangler on the Apple Mac or Notepad on the PC and edit or add that line above.
Wordpress revisions how to#
If you have an ftp program and you know how to use it, connect to your site and download wp-config.php. This keeps the bloat down while still enabling you to revert to a previous version of a post if you need to.Įven just storing one revision will produce some WordPress database bloat and setting the revisions to zero eliminates them completely and this results in no bloat and the best performance. Set it to 1 to store just the last version of the post is kept. For example, set it to 3 and only three revisions will be stored. That number near the end of the line is the number of revisions to store and it can be changed to anything. If it does not exist, it can be added to the end of the file. In this file is a line like this: define( 'WP_POST_REVISIONS', 5 ) There is a file on the web server in the root (top level) called wp-config.php. However, you do need some technical knowledge and it is not for novices. There is a way to limit the number of revisions that WordPress stores and this can help to prevent it from becoming too bloated. Backups also take longer to complete and they require more storage space.Īs a website grows older and more posts are added and edited, it becomes more bloated with old copies of posts. In extreme cases this can result in databases that are bloated and it can reduce the performance of your website. Storing multiple copies of posts makes the database in which they are stored bigger. This could be a life-saver if you have made disastrous changes to a post and want to revert to a previous one. The changes are highlighted in red (old version) and green (new version).ĭrag the slider at the top of the page to browse the revisions and click the big blue button to restore a revision. Two revisions are shown at a time and on the right is the latest version and on the left is the previous one. To view and restore the revisions, click the Browse link. It tells you the number of revisions that have been stored. Open a post in the WordPress editor and look at the Publish box in the top right corner. For example, if you made some changes, but then decided they were not very good after all, you could restore a previous version instead of having to recreate it all over again. The advantage of storing revisions is that you can return to a previous version of the post. In fact, any page you have ever edited, ever! Advantages of WordPress revisions This means that there are multiple copies of many of the pages on your website. Many posts can have revisions and there can be many revisions for a post.
Wordpress revisions update#
If you return to the post and edit it, make some changes, then update it, the new version is published, but a copy of the old version is kept as a revision.Įvery time you edit and update a post, the old one is saved as another revision. When a post is publish on a WordPress blog or site, it is saved in a database. Optimise WordPress by removing post revisions and junk files to improve performance.


Speed is an important factor for both visitors and search engines, and the faster your site, the better it is.
