Web Design Agency based in Houston that specializes in Websites design, SEO, Digital Marketing, Mobile Apps Development, Blockchain Solutions, and others.

2502 La Branch St, Houston, TX 77023
+1(713)367-1232‬
support@bereshkaweb.net

Folow us

How to Limit or Disable WordPress Post Revisions

web design company

How to Limit or Disable WordPress Post Revisions

Multi-post revision storage is said to slow down WordPress websites. False. WordPress is smart enough to ignore revisions while rendering the front end, and its MySQL queries are smart enough to not be slowed by revisions. However, post revisions occupy database space. Your posts are revisions, which means that if you have hundreds of posts, you also have hundreds of revisions.

web design company

web design company

Removing post revisions is a great way to reduce the size of your WordPress database without sacrificing content. Simply open the WordPress wp-config.php file and add the following configuration line above the “/* */” line:

define(‘WP_POST_REVISIONS’, false );

This will only tell WordPress to stop storing new post revisions. Use the Sweep free plugin or another similar plugin to delete all existing ones.

If you don’t want to completely disable WordPress revisions, you can set a limit on how many revisions are saved. Add the following line above the “/* That’s all, stop editing!” in the wp-config.php file. */” line:

define(‘WP_POST_REVISIONS’, 3 );

In the above, you can substitute 3 with the limit of revisions you want to have for each post.

Post a Comment