<?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>Abeon Tech &#187; WordPress</title>
	<atom:link href="http://abeontech.com/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://abeontech.com</link>
	<description>Abeon Techs Geeky blog for Coders, Gamers, Webmasters and Tech Addicts!</description>
	<lastBuildDate>Thu, 28 Jul 2011 18:50:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Disable Post Revisions</title>
		<link>http://abeontech.com/307-webdesign-disable-wordpress-post-revisions</link>
		<comments>http://abeontech.com/307-webdesign-disable-wordpress-post-revisions#comments</comments>
		<pubDate>Thu, 27 Nov 2008 18:26:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Addon]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.abeontech.com/?p=307</guid>
		<description><![CDATA[If you have run a Wordpress blog for any length of time, you should know how large the SQL database can get.

This is largely due to the "Post Revisions", which get auto-saved.
If you edit a post a few times, a huge list of revisions gets saved to the database.

This post has easy methods to disable and delete the post revisions, which are automatically cached by Wordpress.]]></description>
			<content:encoded><![CDATA[<p>If you have run a <a href="http://www.wordpress.org">WordPress</a> blog for any length of time, you should know how large the SQL database can get.</p>
<p>This is largely due to the &#8220;Post Revisions&#8221;, which get auto-saved.<br />
If you edit a post a few times, a huge list of revisions gets saved to the database. You can see these at the bottom of the post editing page.</p>
<p>This post has easy methods to disable and delete the post revisions, which are automatically cached by WordPress.</p>
<p><span id="more-307"></span></p>
<p>If you don&#8217;t use or need the post revisions which Worpdress has already saved for you, then you can delete them all by using the SQL query below:</p>
<div class="codecolorer-container sql default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold;">DELETE</span> <span style="color: #993333; font-weight: bold;">FROM</span> wp_posts <span style="color: #993333; font-weight: bold;">WHERE</span> post_type<span style="color: #66cc66;">=</span><span style="color: #ff0000;">'revision'</span>;</div></div>
<p>You can also disable it from executing to start with by opening <strong>wp-config.php</strong> in your blog&#8217;s home directory.<br />
Search for:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_COLLATE'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>And add this under it:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><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: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'AUTOSAVE_INTERVAL'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">600</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>There is also a great WordPress Plug-in called <a href="http://wordpress.org/extend/plugins/wp-cms-post-control/">WP-CMS Post Control</a>, which gives you more control over how posts are edited.<br />
This great WordPress plugin will allow you to:</p>
<ul>
<li>Force standard browser upload instead of Flash upload</li>
<li>Turn off the revisions feature</li>
<li>Turn off the auto save feature</li>
<li>Create a collapsable message panel that appears below the write panel</li>
<li>Control which options are shown on the post page</li>
</ul>
<p>I prefer to use the manual method, as too many plug-ins for WordPress can cause problems.</p>
<p>I don&#8217;t know anyone that has found the post revisions that WordPress saves, usefull.<br />
Maybe in a future edition (v2.7 hopefully), they will include an option to disable from the admin control panel. But untill then thousands of blog owners will have to do it manually or use a plugin!</p>
]]></content:encoded>
			<wfw:commentRss>http://abeontech.com/307-webdesign-disable-wordpress-post-revisions/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

