![]() If you are not familiar with sFTP access please read this article. In WordPress 2.6 introduced as WordPress revision, this feature creates a copy of the previous version of your post while you edit it. If you had stored revisions from a previous host they might show up after setting this. You will need to make edits and save a draft to see if the revisions are enabled. Note: If you made changes before the setting was enabled, you will not see any old changes you made. To enable Page Revisions you can simply add the following line to your wp-config.php file within the Custom Constant Definitions section: define( 'WP_POST_REVISIONS', 3 ) Over time, this can become a significant issue if lots of edits are made to site that has been up for a long time or if the site has many authors generating new posts and edits.īy default Pagely has opted to disable revisions unless they are needed by the user. ![]() Saving all WordPress post revisions forever might sound good on the surface, but the database can quickly become cluttered. ![]() The default setting for `WP_POST_REVISIONS` is true, meaning that all changes/edits to content are saved in the database forever. You can use this plugin to remove all post revisions in one go or individually remove old post revisions for specific posts or pages.ĭo you have a specific question with respect to WordPress post revisions? Please let me know in the comments and I will be happy to help.The WordPress revisions system stores a record of each saved draft or published update. You can use phpmyadmin to delete post revisions, you can run MYSQL queries to delete post revisions made between a specific date range.īut the easiest way to delete old post revisions in WordPress is to use the Better Delete revision WordPress Plugin. There are different ways to delete existing revisions from WordPress database. How to delete existing post revisions from WordPress database? ![]() That’s all you need to do to turn post revisions off. How to turn off post revisions in WordPress?Įdit the wp-config.php file and add the following lineĪfter editing the file, please upload it back on the same directory and overwrite it. So if you are worrying about the loading time and user experience of your blog for post revisions, there is nothing to be concerned of on that front. WordPress is smart enough to load your website in a way that revisions do not affect the loading time of your website and neither the queries are dependant on how many revisions a post has. It is completely a myth that the higher the number of revisions, the slower your site is. Please note that post revisions will not slow down your website or will not cause a lag in MYSQL queries. That blog had more than 3000 posts which means the database was clogged with unnecessary revisions which were not required in the first place. But when I started inspecting revisions on another blog where I used WordPress editor to compose posts, I found that each post had at least more than 5-6 revisions. Honestly, I never needed post revisions since I use a text editor to compose the content. ![]() When you edit or compose a post in WordPress, you make several edits and WordPress keeps storing these revisions, should you need them later. While post revisions is a handy feature, it will increase the size of your WordPress database significantly as you keep adding content to your blog. Why turn off post revisions in WordPress? However, there are a few reasons why you may want to turn off post revisions in WordPress and delete existing ones from WordPress database. This feature comes in really handy when you have accidentally made changes that needs to be reversed. Post revisions is a nice WordPress feature which tracks the revisions made in a post and helps you revert to an earlier version of the post, should you need to. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |