<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Chad Von Lind &#187; Website Designer, WordPress Programmer &amp; Theme Developer &#8211; Chad Von Lind</title>
	<atom:link href="http://vonlind.com/tag/revisions/feed/" rel="self" type="application/rss+xml" />
	<link>http://vonlind.com</link>
	<description>Web Design Specialist, WordPress, CMS and eCommerce</description>
	<lastBuildDate>Mon, 17 Oct 2011 18:27:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Remove and Prevent Revisions in WordPress</title>
		<link>http://vonlind.com/2009/06/remove-and-prevent-revisions-in-wordpress/</link>
		<comments>http://vonlind.com/2009/06/remove-and-prevent-revisions-in-wordpress/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 19:49:51 +0000</pubDate>
		<dc:creator>Chad Von Lind</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[revisions]]></category>

		<guid isPermaLink="false">http://vonlind.com?p=259</guid>
		<description><![CDATA[I recently noticed that a particular post had built up about 10 or 15 revisions for it. I started thinking that of all the posts I have, there have to be quite a few revisions and therefore are creating a hefty sized table in my database. This was run on my WP 2.8, but should [...]]]></description>
			<content:encoded><![CDATA[<p>I recently noticed that a particular post had built up about 10 or 15 revisions for it. I started thinking that of all the posts I have, there have to be quite a few revisions and therefore are creating a hefty sized table in my database. This was run on my WP 2.8, but should work for 2.6 and up.</p>
<p>Here is a solution to prevent revisions from being created, as well as removing all revisions from your database.</p>
<h3>Prevent Revision Creation</h3>
<p>Open wp-config.php and add this to the very bottom of the file, before the php closing tag.</p>
<p><code>define('WP_POST_REVISIONS', false);</code></p>
<p>This completely turns off any revision creation. If you&#8217;d like to restrict revision creation to a set amount per post, you can change &#8216;false&#8217; for the number of revisions you&#8217;d like stored.</p>
<h3>Remove All Revisions From Database</h3>
<p>Open up your database in phpmyadmin and run this SQL Query.</p>
<p><code>DELETE FROM wp_posts WHERE post_type = "revision";</code></p>
<p>And now you&#8217;ll have a more tidy database.<img src="http://vonlind.com/?ak_action=api_record_view&#038;id=259&#038;type=feed" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://vonlind.com/2009/06/remove-and-prevent-revisions-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

