wp revisions config
snippet in php

wp revisions config

user5858

// on wp-config.php -->
define( 'WP_POST_REVISIONS', 5 ); // Save max 5 revisions
define('AUTOSAVE_INTERVAL', 120 ); // Save revision automatically after 2 minutes (default 60 sec.)