• Home
  • Download Free eBook
  • OC Archives
  • Tools I Use
  • Webmaster Forum
  • Write For Us
Logo

  • Discounts
  • SEO Central
    • All other Search
    • Bing
    • Google Central
    • Yahoo
  • Social Networks
    • Digg
    • facebook
    • Squidoo
    • Technorati
    • Twitter
  • Web Design & Development
    • Ajax
    • Coding
    • Database
    • Graphic Design
    • Joomla
    • jQuery
    • OScommerce
    • Photoshop
  • Webmaster Central
    • Author's Corner
    • Case Studies
    • Content Writing
    • Featured Interviews
    • Guest Posts
    • Make Money Online
    • OC Promos
    • Premium Reviews
    • Video Tutorials
    • Web Hosting
    • Web News
    • Web Security
  • Wordpress

Tutorial: How to Disable or Limit or Delete Autosave Post-Revisions in WordPress

Posted by Joshu Thomas on Feb 23, 2010 in Webmaster Central | 5 comments


The Tags covered here are: How to Disable or Limit or Delete Autosave Post-Revisions in WordPress, how to disable Autosave in WordPress, how to limit Autosave in WordPress, how delete Autosave posts, how to mass delete Autosave posts, how to disable post revisions, how to disable post revisions and change interval.

What is Autosave Feature or Post revision feature in WordPress:?
It’s a feature by which WordPress CMS automatically saves posts as post-revisions with time stamps, before, after and in between of posting articles.

Advantages of this Feature:
• Most useful when there are multi authors for your blog and different authors and revisions by each author is auto saved for review by admin
• Auto save of posts save loss of draft when your internet connection gets cut off or your browser get closed accidently.(disaster recovery feature ;)

Disadvantages
• Waste of Web space and memory with huge number of auto saved posts
• Confusion and long post page with number of unwanted revisions

Topics to cover
• How to Disable or Switch OFF the Autosave or Post Revision Feature in WordPress.
• How to Limit the number of Autosave posts or Post Revisions
• Delaying or controlling the Autosave time duration
• Doing all the above with a WP Plug-in
• How to Mass delete the Auto saved posts revisions through PHPadmin

How to Disable or Switch OFF the Autosave or Post Revision Feature in WordPress.

Back up the wp-config.php file as the first step. Further open the file in a text editor and insert the below line any where in the page between the PHP

define(‘WP_POST_REVISIONS’,false);

How to Limit the number of Autosave posts or Post Revisions

Lets imagine you don’t want to completely switch off the Autosave feature but want to limit the number of Autosave s to 2 or 3. then replace the above code in wp-config.php as below

define(‘WP_POST_REVISIONS’,3);

The best practice is to comment this above line with /* Comment */ so that you know later what you did this for.

Delaying or controlling the Autosave time duration

You also have an option to delay the frequency of Auto save rather than changing the number of Autosave, you could add the line below to the wp-config.php to achieve this change.

define(‘AUTOSAVE_INTERVAL’,600);

Last resort: Using a Plug-in
If you cant do the simple PHP Edit, then only opt for the usage of plug-in since it’s a wastage of memory space adding one more plug-in for such a simple task.

Plug-in download: http://exper.3drecursions.com/2008/07/25/disable-revisions-and-autosave-plugin/

Next: Read this article to learn How to Mass delete the Auto saved posts revisions through PHPadmin using an SQL query.

Hope you enjoyed reading the article and it was helpful, let me know if you have any questions.
[ratings]


About Joshu Thomas

I enjoy blogging about webmaster related stuff and technology. Xtras - I Design, Develop, Blog and Support the Open Source. Passions: I Love Music, Photography, Design, Development, Cycling, Travelling.

Related Articles You Are Probably Interested In:

  1. How to Delete WordPress Post Revisions or auto saved posts
  2. How to Mass delete autosaved posts in WordPress
  3. How to Mass Delete pending posts in WordPress
  4. How to Disable WordPress Blog Feeds?
  5. Auto post from your WordPress Blog to FaceBook Fan Page
  6. How to disable text selection and right click on wordpress blog
  7. How to upload a theme to wordpress: Detailed Tutorial
  8. How to Auto Post to FaceBook?

5 Responses to “Tutorial: How to Disable or Limit or Delete Autosave Post-Revisions in WordPress”

  1. StephanJade says:
    March 15, 2010 at 9:09 pm

    Nice blog as for me. It would be great to read more about that topic. Thanks for posting that data.

    Reply
  2. StephanJade says:
    March 16, 2010 at 2:39 am

    Nice blog as for me. It would be great to read more about that topic. Thanks for posting that data.

    Reply
  3. מאמרים says:
    November 19, 2010 at 3:34 pm

    Thank you very much, I was getting frustrated with having so many revisions for each page!

    Reply
    • orangecopper says:
      November 20, 2010 at 1:54 am

      Great – there are some plugins like wp – cleanup that could be also used to remove post revisions using the control panel also.

      cheers
      Josh

      Reply
  4. dede says:
    January 6, 2011 at 12:01 am

    This is a very useful post. It is well though out and well presented.

    However,If I could make a suggestion, it would be it much easer for the user if they could copy and paste the line they need into their config file.

    The mouse highlight mode is not working for me.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

*

*

CAPTCHA Image
Refresh Image

*

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 Subscribe to OC Blog! 

Subscribe to OC Blog

Stay tuned to the Latest updates and tips in the Webmaster World




Most Popular Posts

  • List of High PR do follow blogs (Verified) (364)
  • Next Google Page rank - PR update 2011 (288)
  • Market Samurai Discount – Save 80 USD! (244)
  • 300 High paying adsense keywords 2011 (112)
  • List of High PR Dofollow Directories 2011 (104)
  • Best Classifieds Ads Scripts (86)
  • 22 OpenSource Forum Scripts - Details and Download: update list (83)
  • Next Google PageRank update 2012 (75)
  • Review of the List of the Best Social Networking websites 2011 (72)
  • How to modify the Wordpress comment Form (70)
  • List of 200 Highest paying Adsense Keywords : Updated list 2010 (54)
  • Featured Interviews: Harsh Agarwal from ShoutMeLoud.com (49)
  • One of the Biggest SEO Secret for Linkbuilding (48)
  • 10 Best Premium Wordpress Plugins (46)
  • Elegant Themes Discount 2011 (Save 10 USD) (44)
  • List of all Top Social Networking websites as on 2010 (42)
  • How i earn Big Bucks from my blog Doing Nothing! (42)
  • 30 Best wordpress Plugins required for Any WP Blog (39)
  • Download KeywordLuv WordPress Plugin (39)
  • Fatal Error on WordPress 3.3 Version Upgrade (39)
  • +Joshu Thomas

    • Founder of OrangeCopper Webmaster Networks, Writes for our latest Launch of 2011 - HippieMonk Tech & LifeStyle Blog!
About OrangeCopper Network 

Who am I? Am Joshu. I enjoy blogging about webmaster related stuff and technology. Xtras - I Design, Develop, Blog and Support the Open Source. Passions: I Love Music, Photography, Design, Development, Cycling, Travelling and sleeping (Favorite)

What i could do for you: Ive been working on various shades of the web for over 11 years now and learned the hard way, Now i could help you learn it the Easy way. OrangeCopper is a Webmaster community that i started in the year 2002 and is now a platform for webmasters around the world. Thankyou for spending your time to visit Blog. I would love to get connected every webmaster reading this, follow me on Twitter and i would auto follow you. Thanks again, Happy Surfing!

Interested to Learn Professional Blogging? Check out my NapIncome Blog where I share all the secrets to build a professional blog and earn money from ProBlogging.

Please Subscribe to the Blog Newsletter to get regular weekly update
Twitter: http://www.twitter.com/orangecopper | Subscribe to feeds : http://feeds.feedburner.com/orangecopper/ilRl

Other OrangeCopper Network Websites

ConnectRing Web Directory | UsedMobiles.in | UsedGadgets.in | NapIncome Strategy Blog | HippieMonk Technology Blog | All Good WordPress Themes | PixelTribes Photography Blog | Yscream Web Hosting

Favorite Articles

  • List Of Best Classifieds Ads Scripts Ever (Free & premium)
  • How to triple your Blog Subscription rates / opt-ins – It Worked for me!
  • You can certainly spend Half a Dollar For creating a GREAT Blog
  • How i earn Big Bucks from my blog Doing Nothing!
  • 35 best free wordpress themes for download: updated list 2010
  • 22 Web 2.0 Colors and their codes in HTML
  • 48+ web Design Related Twitter Accounts To Follow
  • Make a web 2 icon with Photoshop in easy 8 steps
  • List of 62 Free Press Release websites

    Most Rated Articles

  • Compare WordPress – Joomla – Drupal and their features
  • 7 Excellent jQuery menus and jQuery examples and downloads
  • 5 Most Important To Do s for a New Blog Launch
  • How to colorize with adobe Photoshop
  • Free Magento Themes / Templates Download: updated list
  • How to install wordpress step by step tutorial
  • List of 200 Highest paying Adsense Keywords : Updated list 2010
  • How to display Exit Splash or Exit message for website
  • How to promote your old Blog posts