Feb 062012

There is a WordPress feature that saves automatically review our article in order to avoid accidental loss of our content. These revisions allow us to recover previous versions of our post but of course they’re going to weigh down, albeit slightly, our database. Sometimes
Solutions to change it:

Change the settings to our revisions is very simple, just add one line of code to our wp-config.php file located in the root of our site. The possibilities for change are:

Change the interval that elapses between a self-rescue and the other, 3 minutes in our case:
1 define (‘AUTOSAVE_INTERVAL’, 180), / / every 3 minutes

Specify the maximum number of revisions you want to save, in the case where 5 is the number of revisions allowed:
1 define (‘WP_POST_REVISIONS’, 5);

Completely disable the Revision of the post:
1 define (‘WP_POST_REVISIONS’, false);

Of course if you want the options togheter will add the lines you need. For Example:

define (‘AUTOSAVE_INTERVAL’, 600), / / every 10 minutes;

define (‘WP_POST_REVISIONS’, 5);/ / will limit the revisions to 5

also useful

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>