You might like these posts:
How to invalidate all existing cookies using Security Keys in WordPress?
WordPress: How to create a folder if it doesn’t already exist?
How get_template_part helps write reusable code in WordPress?
If you pay attention while writing your blog post, you must have noticed that WordPress is saving the posts as you edit them – just like Google or MicroSoft Office products.
While Google and Microsoft have their own technics to check for the edits and save them, WordPress uses familiar AJAX to auto save the posts into separate revisions.
The default WordPress AutoSave Interval is 60 seconds.
If you think WordPress is creating way more revisions than you’d want it to create then you might want to change the intervals and delay the auto save to create a fewer revisions. It helps with your database as well since there will be a fewer revisions and less data to store.
Similarly if you want WordPress to constantly save changes, you could do that too so that you’ll never lose any changes made to your post.
This is how you can modify AutoSave Interval:
define( 'AUTOSAVE_INTERVAL', 200 ); // Seconds
You need to add the code above into wp-config.php file.
draft intervals pages posts update