C.O.D. Protests The Protect IP Act

Personally, I am sick and tired of the United States government meddling more and more in our lives.  The movie and music industry is using our elected officials like puppets (muppets) and we are sitting idly by and letting it happen.  Well, I signed the petition, and my voice will be heard next election.  G.R.I.P. – Get Rid of Incumbent Politicians.  If we really want to make changes, we have to get those that pander to big business out of office and let them know that we have the power to do it.  After all, they are there to represent Read More…

wordpress-thumbnail-logo
  • EmailPrint This PostFeedShareCOD

There are many things about WordPress that have a catch 22 effect on you; something that you love but drives you crazy at the same time.  One of these features happens to be the post revisions introduced in current version of the CMS.  Post revisions are an excellent concept and I have used it on more than one occasion, however, it gets out of control at times.  When working on an article, I have added and removed content daily resulting in HUNDREDS of post revisions stored in the database.  Here are some ways to manage your post revisions.

One way to manage your post revisions is to simply turn them off.  This is not an ideal situation for myself and for many but the hard reality is that many of us have resorted to this.  Having used the post revisions myself, this was my first solutions.

To disable post revisions you will only need to edit one file, your wp-config.php file in the root of your WordPress installation.  Simply add:

// Disable the post-revisioning feature
define('WP_POST_REVISIONS', false);

For the rest of us, the better option is to limit the number of revisions that will be saved.  Until recently, I didn't even know this existed but thankfully the forward thinking of the WordPress developers saw the need and implemented a means to accomplish this.  Simply edit the wp-config.php file and add the following:

// Limit the number of saved revisions
define('WP_POST_REVISIONS', 3); // Change the number

Another way to help with your post revisions is to change the interval in which WordPress auto saves the post you are working on.  By default WordPress auto saves your posts in intervals of 60 seconds.  Modifying this value is simple and you can force it in either direction, shorter or longer.  Simply edit your wp-config.php and add the following:

define('AUTOSAVE_INTERVAL', 160); // Change the number - it's in seconds

Note: These functions are not of my own creation, simply things I have found along the way.  If you are the author of this function, please let me know so I can properly credit you with your work!

Share to Facebook Share to Twitter Stumble It Digg Linked In Delicious Tumblr

Joe DiFiglia has written 195 Articles at C.O.D.


In early 2000 I became increasingly frustrated with hardware review sites praising less than satisfactory products. The saying: “if you want something done right, do it yourself” applies here. I wasn’t satisfied, so I did it myself; and here we are years later.