The WordPress revisions system stores a record of each saved draft or published update. By default, VIP environments store the last 500 revisions. The constant
WP_POST_REVISIONS is defined in the
vip-config.phpfile, where this number can be increased or decreased:
-1: store every revision
0: do not store any revisions (except the one autosave per post)
- (int) > 0: store that many revisions (+1 autosave) per post; old revisions are automatically deleted
For sites that have migrated a database to VIP that with more than 100 revisions per post, those revisions will be preserved. However, the next time one of these posts is edited, unless the above constant has been changed from the default, only the most recent 100 revisions will be saved.
Post draft autosave intervals
By default, WordPress automatically saves a post draft every 60 seconds. Every autosave makes a post request in the background, sending the current content to the database and saving it as a post revision. Increasing the amount of time between autosaves can have a positive effect on site performance, and is primarily advantageous for a site that often has a large number of editors working concurrently.
To increase the time between autosave intervals, define
vip-config.php to a value higher than
define('AUTOSAVE_INTERVAL', 300 );
Last updated: May 25, 2023