Hello Friends, Now Today we going to learn How to Decrease or Reduce posts revisions count reduction.
Now we learn about post revision or why we reduce?
What is posts revisions? It is a feature introduced in WordPress 2.6. Whenever you or WordPress saves a post or a page, it automatically creates a revision and stores in your WordPress database.
Why should we reduce their count? Each additional revision will slowly increase the size of your WordPress database. If you save a post or page multiple times, your number of revisions will greatly increase overtime. For example, if you have 200 posts and each post has 20 revisions you could be storing up to 2,000 copies of older data!
Now let’s Start,
Now if you want to increase your website speed, fast and optimized, so this is for you.
To decrease or reduce post revisions, you need to go to the root of your WordPress Blog Installation using cPanel File Manager or FTP(like filezilla, phpdesigner) provided by webhost. The file you will need to edit is named wp-config.php Open this file and copy this string of code to it:
Where X should be replaced with the number of the revisions you’d like to have.
Note! It is recommended to copy this command to the first line under the initial block comment in wp-config.php.
Now if you save the changes and refresh your WordPress Dashboard that should be it. No more redundant data and no issues with website load speed.
That’s it Thank you for watching @thinknowledge