<?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>girliegeek &#187; WordPress</title>
	<atom:link href="http://www.girliegeek.com/topics/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.girliegeek.com</link>
	<description>I'm not really a geek, I just play one on the internet.</description>
	<lastBuildDate>Thu, 20 May 2010 07:02:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Disable Post Revisions in WordPress</title>
		<link>http://www.girliegeek.com/2008/12/16/disable-post-revisions-in-wordpress/</link>
		<comments>http://www.girliegeek.com/2008/12/16/disable-post-revisions-in-wordpress/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 03:01:18 +0000</pubDate>
		<dc:creator>girlie</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[disable]]></category>
		<category><![CDATA[revisions]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.girliegeek.com/?p=266</guid>
		<description><![CDATA[The Post Revisions feature in WordPress takes up database space that I&#8217;d rather not waste. So I found out how to disable the feature. Add this to wp-config.php: // disable post revisions define&#40;'WP_POST_REVISIONS', false&#41;; Then, clean up the database with this SQL: DELETE a,b,c FROM wp_posts a LEFT JOIN wp_term_relationships b ON &#40;a.ID = b.object_id&#41; [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>The Post Revisions feature in WordPress takes up database space that I&#8217;d rather not waste. So I found out how to disable the feature. Add this to <code>wp-config.php</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// disable post revisions</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_POST_REVISIONS'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Then, clean up the database with this SQL:</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">DELETE</span> a<span style="color: #000033;">,</span>b<span style="color: #000033;">,</span>c  
<span style="color: #990099; font-weight: bold;">FROM</span> wp_posts a  
<span style="color: #000099;">LEFT</span> <span style="color: #990099; font-weight: bold;">JOIN</span> wp_term_relationships b <span style="color: #990099; font-weight: bold;">ON</span> <span style="color: #FF00FF;">&#40;</span>a.ID <span style="color: #CC0099;">=</span> b.object_id<span style="color: #FF00FF;">&#41;</span>  
<span style="color: #000099;">LEFT</span> <span style="color: #990099; font-weight: bold;">JOIN</span> wp_postmeta c <span style="color: #990099; font-weight: bold;">ON</span> <span style="color: #FF00FF;">&#40;</span>a.ID <span style="color: #CC0099;">=</span> c.post_id<span style="color: #FF00FF;">&#41;</span>  
<span style="color: #990099; font-weight: bold;">WHERE</span> a.post_type <span style="color: #CC0099;">=</span> <span style="color: #008000;">'revision'</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.girliegeek.com/2008/12/16/disable-post-revisions-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
