Forums

Post revisions taking up Database space (5 posts)

  1. seedpxwee5
    Member
    Posted 11 months ago #

    I've got more post revisions than published posts.

    Is there anyway to delete them?

  2. bartoost
    Member
    Posted 11 months ago #

    I would suggest a button "Switch of revisions". Revisions take up a lot of database space. I rather have a small database - and a fast system.

  3. Lillan
    Member
    Posted 11 months ago #

    I agree, I also got more post revisions than published posts. I button would be nice :)

    define('WP_POST_REVISIONS', false ); doesn't work (wp 2.7) it gives me a blank site. What to do????

  4. gappiah
    Member
    Posted 11 months ago #

    To disable / control Post Revision, add this in your wp-config.php file:

    define('WP_POST_REVISIONS', false); // disables post revisions
    
    define('WP_POST_REVISIONS',5); // only keep last 5 revisions

    Or you can do this via a plugin:

    Disable Revision: http://wordpress.org/extend/plugins/disable-revisions/

    Revision Control: http://wordpress.org/extend/plugins/revision-control/

    WP-CMS Post Control: http://wordpress.org/extend/plugins/wp-cms-post-control/

  5. n1spirit
    Member
    Posted 5 months ago #

    Directed to gappiah: THANKS for posting your solution. After upgrading to version 2.8 of Wordpress I noticed that the post revisions were again being retained. I had previously installed WP-CMS Post Control to turn them off and somehow the parameter had been changed back to the "Wordpress Default" (of retaining them) after the upgrade. However, by including one of the 'define' lines you've described (see below for reference) I was able to make use of all of the other uses of WP-CMS Post Control [AND] adjust my wp-config.php file to retain 2 revisions for each post, which I may yet revise but still on the fence about.

    define('WP_POST_REVISIONS',2); // only keep last 2 revisions

    So again, thanks for posting the solution as well as the many different alternatives. Much appreciated, Michael

Reply

You must log in to post.

About this Topic