Disable Post revision in WordPress

Post revision is a nice tools if you have multiple writer who will contribute from the same article, but how if you have more than 5,000 articles and each time your writter will edit and draft it, you might have 50,000 records from your wp_posts tables where would slow down the database loading time.

To done this, simply add the code as below from wp_config.php file,

define('WP_POST_REVISIONS', false);

How to know if you have too many WordPress plugins

Many bloggers who using WordPress were facing a major problem, website slow. Sometimes, this could be a problem from the WordPress application itself instead of the hosting server.

WordPress is designed to be able to use custom plugins or themes. If you simply install the untrusted plugins or themes, it will indirectly causing your website slow.

So you shall not install the unused plugins. If you did it, uninstall it instead of deactivated it as deactivated will still causing the SQL query to query it from the wp_options tables from your database.

Watch your website load time. If your site couldn’t loaded within 5 seconds and where this might caused by the low quality plugins installed.

Check the plugins compatible from the plugins page from URL below,

Check the query time,  add the following code to your footer.php and check your site query number and time.

<?php echo $wpdb->num_queries; ?>
<?php _e('queries'); ?>. <?php timer_stop(1); ?> <?php _e('seconds'); ?>

Then try to disable the plugin 1 by 1 or even remove them and test the query time. Otherwise, optimize the database to cleat the overhead data.