content top
Post Revisions and Autosave

Post Revisions and Autosave

I am not sure of the exact version number as to when the post revisions and autosave feature was applied to WordPress, but it was some time ago now viagra belgique ordonnance. I have to say from the outset, that it is not one of my favourite features as it seems to get in the way more than anything. Having said that though, there was one particular occasion where I had not disabled this feature on a site and I was extremely relieved to find that my lost posts, were not actually lost at all.

So really, I guess you need to decide for yourself as to whether or not you need them in place.

Here are a few of the options available in regards to disabling them. [ Add the following codes to your wp-config file. ]

Disable Post Revisions completely…

[php]define(‘WP_POST_REVISIONS’, false);[/php]

Limit the amount of Post revisions… [Change the number to your preference]
[php]define(‘WP_POST_REVISIONS’, 3);[/php]

Disable Autosave [You need to open the wp-settings.php file]

Locate this code:

[php]if ( !defined( ‘AUTOSAVE_INTERVAL’ ) )
define( ‘AUTOSAVE_INTERVAL’, 60 );[/php]

and change the 60, which applies 60 seconds between saves, to something like 1800, which will mean the saves only happen every 30 minutes

[php]if ( !defined( ‘AUTOSAVE_INTERVAL’ ) )
define( ‘AUTOSAVE_INTERVAL’, 1800 );[/php]

Always remember to save the files when you complete adjusting the codes.

Leave a Reply

Your email address will not be published. Required fields are marked *