WordPress pages and posts support revisions. Really useful if your newer version isn’t as good as the older one. Or if you delete some text in error and click update.
But do you really wish to keep a copy of every save which you have made of your post or page as you write?
Is a complete history of a page really required?
Limiting the number of post revisions which is kept will help to keep the number of entries within the database to a lower level. This will help to improve the performance of your website.
I like to keep the number of revisions to a minimum. You may prefer a higher value such as 50. This should be well clear of most updates made whilst creating a page, at least those that you are going to step backwards through.
If you wish to make the change to your website this may be done with a simple addition to your wp-config.php file, located at the root of your website
To make the change either access via the file manager within the control panel from your website hosting or via FTP.
Note take care editing this file as it can affect the operation of your website, it includes, amongst other things the configuration for accessing your database.
The text to be added to the file is
define( 'WP_POST_REVISIONS', 50 );
In this example the limit has been set to 50
Shown below is this addition for the number of post revisions added prior to the multisite setting within the wp-config.php file
/**
* WordPress Localized Language, defaults to English.
*
* Change this to localize WordPress. A corresponding MO file for the chosen
* language must be installed to wp-content/languages. For example, install
* de.mo to wp-content/languages and set WPLANG to 'de' to enable German
* language support.
*/
define('WPLANG', '');
/**
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*/
define('WP_DEBUG', false);
/**
* Limit the number of revisions of posts or pages
*/
define( 'WP_POST_REVISIONS', 50 );
/**
* Change this to true to run multiple blogs on this installation.
* Then login as admin and go to Tools -> Network
*/
define('WP_ALLOW_MULTISITE', false);
/* That's all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
/* Destination directory for file streaming */
define('WP_TEMP_DIR', ABSPATH . 'wp-content/');


