Limit WordPress Revisions In wp-config - Revision Control Speeds Up Database | WP Learning Lab

preview_player
Показать описание

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:

Рекомендации по теме
Комментарии
Автор

Thank you very much.
it's work for me

taiaburrahman
Автор

Where is the "delete revisions in phpMyAdmin" video / insutruction?

I only found how to delete ALL ... I want to delete anything over 10. Any help?

BTW, great video ... but I already had this in my wp-config :)

RemodelCalculator
Автор

This is the best video on how to do this. I like how you tell where to find the folder, where to put the code, and what exactly to enter. Thank you.

melwiens
Автор

i did this method and i stll have 100 revisions

itzchompa
Автор

wp learning lab im curious in the cpanel what is php process. its found in cpanel menu is it normal if a website is running 3?

AmeliaEveRose