When you save a draft or update a post, word press saves a copy of the changes from the previous version. This is useful if you need to return earlier versions of content, but these revisions take up database space. If there are many modifications, it may occupy server storage and affect site performance over time. This article describes how to optimize site performance by managing word press versions. YouTube channel subscription to WordPress revision means that a revision is a saved copy of changes made to the content of pages and posts. When WordPress opens a post or page in the browser, it automatically saves the revision every 60 seconds. In addition, each time you click Update, the revision is saved.
You can view the revision to see all changes between updates, or you can revert to the previous revision. This can avoid losing too much work in case of computer crash or power failure. In addition, if you change your mind about editing, it provides a storage point that can be recovered. You can also access other versions of the content again in a few months. They are stored in the word press database for you to view. How to restore page and article revisions? Word press revision saves these contents, so that you can easily restore pages and posts to previous versions. Let’s see how to restore the revision in the classic editor and Gutenberg editor.
In the classic editor, the revision list is displayed at the bottom of the content editor. Simply click on the revision to see a comparison between the revision and the current content or other revisions. Method of restoring post revision in gutenberk editor malegutenberk editor, the number of revisions is displayed in a separate section of the right sidebar. Click here to open the revision screen. Resume post revision androg clicking revision in any editor will move to the same revision screen. One side of the screen displays the content of the current date and time, and the other side displays the differences from the current content. The current revision is displayed above the content on the left. The slider and the previous and Next buttons at the top show the comparison of different versions. As shown in this example, the title of the revision screen display has changed.
The title and content of this revision are changed from one revision to the next. To restore this revision, simply click \
WordPress post revisions will be saved in the WordPress database. It can be accessed in many ways. Note: changing the database can be risky. Make sure you have the latest backup before making changes. You can use phpMyAdmin to manage word press revision and SQL delete revision. If you can access the database from the mypweb dashboard, select mypweb. You may look different from me, but they should work the same. Male select the database tab on the phpMyAdmin dashboard, and then select the database to modify. Record table prefix. Use it in SQL commands. In my case, although it’s a little fuzzy, it’s in front of the underline
Anything? Example: \
Select the SQL tab, paste the snipt into the field and execute the command. DELETE FROM yourtableprefix_posts WHERE post_type = \
Navigate to the file area labeled \
Then add the snipt above and my WP config. You can see how PHP files look. If you don’t want to modify it at all, you can use this code to disable it completely. However, it is not recommended to keep 0 revisions. This is a reliable way to lose content at some point in time. define(‘WP_POST_REVISIONS’, false); As usual, it is recommended that you save a backup before changing the PHP file. If you are not used to editing PGP files, you are not alone. It’s safer to manage word press revisions using plug-ins.
As a plug-in, WordPress version management plug-in is the best way for most users to manage revisions. Although there are many good options, WP optimize is recommended. It has many word press optimization options. The free version also includes deleting word press posts and revising the schedule. To optimize the post revision, go to the WP optimize > database from the word press dashboard. The optimization tab opens automatically. Select clean all post revisions and click Run optimizer. There are 1087 post revisions in the database of my test site. And they don’t need them now, so they only take up space.
The sorting can also be scheduled to run automatically. If you want a daily or weekly, biweekly, or longer buffer period, schedule a monthly run. Navigate to the Settings tab of WP optimize > database settings. In the scheduled cleanup settings, select use scheduled cleanup and optimization. Select the schedule type (the default setting is weekly). Select clean all post revision and save the settings. Conclusion in order to optimize site performance, it is not difficult to manage word press version. It is best to have several items that can be recovered when needed, but too many will occupy the space of word press database. As mentioned earlier, if you do not continue to select, it may affect the performance of the site. Fortunately, there are several options for managing WordPress revisions. If it is inconvenient to move to PHP file, you can also. Simple optimization plug-ins are always the best choice for most users.
We’d like to hear your opinion. Do you want to use one of the following methods to manage post revisions? Please share your experience in the comments. hanss\/Shu
tterstock. Main image of COM