Disable revisions
To gain some more speed out of your Classipress installation you should disable WordPress Revisions.
What is the benefit of disabling revisions?
You’s database will be smaller and faster!
Classipress doesn’t use Revisions. When a user is entering a new ad, there is no option there to go back to a previous version of your ad, unless he or she decides to contact the website administrator. This has never happened with my users, so there is no need for revisions. They are just slowing down your site.
There are two ways how you can use this manual:
– Disable WordPress revisions
– Clean up all revisions from database
or
– Regularly Clean up revisions from database
Step 1
Disable WordPress revisions
If you have decided to regularly clean up revisions from the database then skip this step and go to Step 2.
Open wp-config.php file and input somewhere before end of file.
You can input after define(‘WPLANG’,”);
/** Disable REVISIONS */ define('WP_POST_REVISIONS', false); |
Step 2
Now that you have disabled revisions, no new revision of post or page is going to be saved, but the database still has a low of old revisions saved in posts table. You need to clean that up. There is a plugin called Optimize Database after Deleting Revisions.
Before running this plugin please make a backup of your database.
I have used this plugin many times on a few Classipress installations and have never had any problems with it.
After you install and enable this plugin go to Options for this plugin and select how many revisions you want to leave in the database.
If you have disabled revisions (Step 1), there is no need to leave any, so put 0 to parameter.
If you have skipped Step 1 then you can leave this parameter to 1 if you will feel better.
After you press Optimize, your database will be much smaller and selecting data should be much faster.
If you find any issues with this tutorial, please be so kind and write a comment. I’ll try to help as much as I can.