Forty Plus Two
42 = The Answer to The Ultimate Question Of Life, the Universe and Everything

WordPress and how to disable post revisions

WordPress introduced Post Revisions in version 2.6 which results in lots of posts (each revision) getting stored in the database. The feature is nothing I need or use and after seeing the result in my database size I looked for ways to disable it.

In How To Turn Off Post Revision In WordPress 2.6 is the answer to how to disable. To turn it off, add the following code to wp-config.php:

define('WP_POST_REVISIONS', false);

How to Delete Existing WordPress Post Revisions Stored/Saved shows how you remove existing revision posts from your database.

Written by Bengt and published on August 17, 2008
Posted in: Blogging
Tagged with:

If you liked this - share it! StumbleUpon | Digg it | del.icio.us | Email this

Subscribe to this blog by RSS or email

2 Comments

  1. Posted October 14, 2008 at 12:37 pm | Permalink

    umm… where exactly in wp-config.php does this code go? apologies for the probably veru silly question?

  2. Bengt
    Posted October 14, 2008 at 2:58 pm | Permalink

    You can place the code almost anywhere. I did add it after the last MySQL setting.

Post a Comment

Your email is never shared. Required fields are marked *

*
*
Copyright © 2008 Forty Plus Two • Running WordPress and the Zen Sandbox theme • This site is hosted at Doreo Hosting.