Forums

[resolved] Autosave && Revisions in my database :( (3 posts)

  1. lysiu
    Member
    Posted 2 years ago #

    hey,

    I have very small mysql database (50MB). So i don't want WordPress to leave the old Revisions and AutoSave's of my post in database. I want to have only latest Revision in my database. Is it possible, or do i have to delete it manually everytime?

    Thanks in advance.

  2. alism
    Member
    Posted 2 years ago #

    I believe adding the following to your wp-config.php:

    define('WP_POST_REVISIONS', false);

    ...will disable post revisions. If you wanted to, say, keep the last two revisions, you'd use:

    define('WP_POST_REVISIONS',2);

    etc.

  3. lysiu
    Member
    Posted 2 years ago #

    thank you, solved

Topic Closed

This topic has been closed to new replies.

About this Topic