filmov
tv
Limit WordPress Revisions In wp-config - Revision Control Speeds Up Database | WP Learning Lab
![preview_player](https://i.ytimg.com/vi/TrvSTIv0-uE/maxresdefault.jpg)
Показать описание
Limit WordPress Revsions In wp-config - Revision Control Speeds Up Database | WP Learning Lab
define( 'WP_POST_REVISIONS', X );
In this tutorial you will learn about the WordPress revision control system (also known as WordPress version control). This system keeps WordPress page revisions and WordPress post revisions incase you want to revert back to them in the future.
The way it works is every time you make a change to a WordPress page or post and save it WordPress creates a new revision in the database. If you create a lot of revisions for a lot of pages and posts, keeping those extra revisions can consume A LOT of database space and resources. This can slow down your site substantially.
define( 'WP_POST_REVISIONS', X );
All of the revisions will still be there for each post, but the next time you save the post, all but the most recent 3 revisions will be removed.
I highly recommend you limit the number of post revisions to keep your database optimized. With this method you don't WordPress edit revisions, you simply eliminate revisions.
I hope this information helps you! If you have any questions leave a comment below or ping me @WPLearningLab on Twitter.
--------------
If you want more excellent WordPress information check out our website where we post WordPress tutorials daily.
Connect with us:
Комментарии