<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: phpBB old topics locker</title>
	<atom:link href="http://www.phpied.com/phpbb-old-topics-locker/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpied.com/phpbb-old-topics-locker/</link>
	<description>Stoyan&#039;s blog about &#60;a href=&#34;/category/xhtml&#34; class=&#34;tag-minor&#34;&#62;(x)html(5)&#60;/a&#62;, &#60;a href=&#34;/category/ajax&#34; class=&#34;tag-major&#34;&#62;ajax&#60;/a&#62;, &#60;a href=&#34;/category/bookmarklets&#34; class=&#34;tag-major&#34;&#62;bookmarklets&#60;/a&#62;, &#60;a href=&#34;/category/browsers&#34; class=&#34;tag-minor&#34;&#62;browsers&#60;/a&#62;, &#60;a href=&#34;/category/css&#34; class=&#34;tag-normal&#34;&#62;css&#60;/a&#62;, &#60;a href=&#34;/category/firebug&#34; class=&#34;tag-minor&#34;&#62;firebug&#60;/a&#62;, &#60;a href=&#34;/category/javascript&#34; class=&#34;tag-numero-uno&#34;&#62;javascript&#60;/a&#62;, &#60;a href=&#34;/category/json&#34; class=&#34;tag-normal&#34;&#62;json&#60;/a&#62;, &#60;a href=&#34;/category/mdb2&#34; class=&#34;tag-minor&#34;&#62;mdb2&#60;/a&#62;, &#60;a href=&#34;/category/mysql&#34; class=&#34;tag-normal&#34;&#62;mysql&#60;/a&#62;, &#60;a href=&#34;/category/pear&#34; class=&#34;tag-numero-uno&#34;&#62;pear&#60;/a&#62;, &#60;a href=&#34;/category/performance&#34; class=&#34;tag-major&#34;&#62;performance&#60;/a&#62;, &#60;a href=&#34;/category/php&#34; class=&#34;tag-numero-uno&#34;&#62;php&#60;/a&#62;, &#60;a href=&#34;/category/phpbb&#34; class=&#34;tag-major&#34;&#62;phpbb&#60;/a&#62;, &#60;a href=&#34;/category/tools&#34; class=&#34;tag-normal&#34;&#62;tools&#60;/a&#62;, &#60;a href=&#34;/category/yslow&#34; class=&#34;tag-minor&#34;&#62;yslow&#60;/a&#62;, &#60;a href=&#34;/category/yui&#34; class=&#34;tag-normal&#34;&#62;yui&#60;/a&#62;, &#60;a href=&#34;/category/writing&#34; class=&#34;tag-minor&#34;&#62;writing&#60;/a&#62;, &#60;a href=&#34;/category/music&#34; class=&#34;tag-major&#34;&#62;music&#60;/a&#62;,... &#60;a href=&#34;/category/life-and-everything&#34; class=&#34;tag-normal&#34;&#62;life and everything&#60;/a&#62;.</description>
	<lastBuildDate>Sat, 11 Feb 2012 14:07:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: aspermops</title>
		<link>http://www.phpied.com/phpbb-old-topics-locker/#comment-81356</link>
		<dc:creator>aspermops</dc:creator>
		<pubDate>Wed, 18 Jan 2012 04:56:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/phpbb-old-topics-locker/#comment-81356</guid>
		<description>привет</description>
		<content:encoded><![CDATA[<p>привет</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: trocourbmor</title>
		<link>http://www.phpied.com/phpbb-old-topics-locker/#comment-80847</link>
		<dc:creator>trocourbmor</dc:creator>
		<pubDate>Sat, 31 Dec 2011 14:47:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/phpbb-old-topics-locker/#comment-80847</guid>
		<description>привет 
супер</description>
		<content:encoded><![CDATA[<p>привет<br />
супер</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BatoZostess</title>
		<link>http://www.phpied.com/phpbb-old-topics-locker/#comment-77762</link>
		<dc:creator>BatoZostess</dc:creator>
		<pubDate>Fri, 20 May 2011 22:41:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/phpbb-old-topics-locker/#comment-77762</guid>
		<description>hy there</description>
		<content:encoded><![CDATA[<p>hy there</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Monica</title>
		<link>http://www.phpied.com/phpbb-old-topics-locker/#comment-74256</link>
		<dc:creator>Monica</dc:creator>
		<pubDate>Fri, 15 Oct 2010 14:59:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/phpbb-old-topics-locker/#comment-74256</guid>
		<description>don&#039;t you think it would have been easier with a daily cronjob? when let&#039;s say the sessions number increase above 60? the chances to run this script will be higher. with a cron job you avoid server&#039;s load at peak times.</description>
		<content:encoded><![CDATA[<p>don&#8217;t you think it would have been easier with a daily cronjob? when let&#8217;s say the sessions number increase above 60? the chances to run this script will be higher. with a cron job you avoid server&#8217;s load at peak times.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip Tellis</title>
		<link>http://www.phpied.com/phpbb-old-topics-locker/#comment-72181</link>
		<dc:creator>Philip Tellis</dc:creator>
		<pubDate>Wed, 20 Jan 2010 01:32:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/phpbb-old-topics-locker/#comment-72181</guid>
		<description>The FROM_UNIXTIME on a table field means that it won&#039;t use an index on that field.  Instead, invert the function like this:

p.post_time &lt; UNIX_TIME(NOW() - INTERVAL 1 MONTH)

that way, if you have an index on (p.post_id, p.post_time), it will be used more effectively.</description>
		<content:encoded><![CDATA[<p>The FROM_UNIXTIME on a table field means that it won&#8217;t use an index on that field.  Instead, invert the function like this:</p>
<p>p.post_time &lt; UNIX_TIME(NOW() &#8211; INTERVAL 1 MONTH)</p>
<p>that way, if you have an index on (p.post_id, p.post_time), it will be used more effectively.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoyan</title>
		<link>http://www.phpied.com/phpbb-old-topics-locker/#comment-591</link>
		<dc:creator>Stoyan</dc:creator>
		<pubDate>Fri, 03 Mar 2006 04:21:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/phpbb-old-topics-locker/#comment-591</guid>
		<description>Hi Torin,

Try copying only the SQL and executing it with phpMyAdmin, see if it works there or if you&#039;re getting any errors.

You might need to tweak the &quot;INTERVAL 3 MONTH </description>
		<content:encoded><![CDATA[<p>Hi Torin,</p>
<p>Try copying only the SQL and executing it with phpMyAdmin, see if it works there or if you&#8217;re getting any errors.</p>
<p>You might need to tweak the &#8220;INTERVAL 3 MONTH</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Torin</title>
		<link>http://www.phpied.com/phpbb-old-topics-locker/#comment-579</link>
		<dc:creator>Torin</dc:creator>
		<pubDate>Wed, 01 Mar 2006 08:00:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/phpbb-old-topics-locker/#comment-579</guid>
		<description>I&#039;m unable to get the code to work in my common.php file. I currently have 9 locked topics, and after updating my commons page: 9 locked topics.

It didn&#039;t return any errors (and I&#039;m not running the probability portion yet.

Any suggestions?</description>
		<content:encoded><![CDATA[<p>I&#8217;m unable to get the code to work in my common.php file. I currently have 9 locked topics, and after updating my commons page: 9 locked topics.</p>
<p>It didn&#8217;t return any errors (and I&#8217;m not running the probability portion yet.</p>
<p>Any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://www.phpied.com/phpbb-old-topics-locker/#comment-369</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Wed, 04 Jan 2006 04:02:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/phpbb-old-topics-locker/#comment-369</guid>
		<description>Excellent. :)</description>
		<content:encoded><![CDATA[<p>Excellent. <img src='http://www.phpied.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stoyan</title>
		<link>http://www.phpied.com/phpbb-old-topics-locker/#comment-354</link>
		<dc:creator>Stoyan</dc:creator>
		<pubDate>Wed, 21 Dec 2005 04:21:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/phpbb-old-topics-locker/#comment-354</guid>
		<description>OK, ready to share some data.

I changed the random factor to one in 1000 and let it run on my board. The board usually has 20 open sessions at slow times and about 60 at pick-hours. With this 1/1000 probability for the locking query to run, it was executed 27.55 times a day on average, which means a little bit more than once an hour.

The run time is usually 0.02-0.03 seconds, but a few times during the nine days of testing it got as high as half a second and sometimes even 2 seconds. The number of locked topics does&#039;t seem to affect the speed.

Overall the results look OK to me and I&#039;ll keep it running as is, until I implement this as a cron job. I&#039;ll try to find the time to polish the script and share it on &lt;a href=&quot;http://www.phpbbhacks.com&quot; rel=&quot;nofollow&quot;&gt;phpbbhacks.com&lt;/a&gt; :D</description>
		<content:encoded><![CDATA[<p>OK, ready to share some data.</p>
<p>I changed the random factor to one in 1000 and let it run on my board. The board usually has 20 open sessions at slow times and about 60 at pick-hours. With this 1/1000 probability for the locking query to run, it was executed 27.55 times a day on average, which means a little bit more than once an hour.</p>
<p>The run time is usually 0.02-0.03 seconds, but a few times during the nine days of testing it got as high as half a second and sometimes even 2 seconds. The number of locked topics does&#8217;t seem to affect the speed.</p>
<p>Overall the results look OK to me and I&#8217;ll keep it running as is, until I implement this as a cron job. I&#8217;ll try to find the time to polish the script and share it on <a href="http://www.phpbbhacks.com" rel="nofollow">phpbbhacks.com</a> <img src='http://www.phpied.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick</title>
		<link>http://www.phpied.com/phpbb-old-topics-locker/#comment-286</link>
		<dc:creator>Patrick</dc:creator>
		<pubDate>Mon, 12 Dec 2005 17:14:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.phpied.com/phpbb-old-topics-locker/#comment-286</guid>
		<description>Cool. :) Thanks.</description>
		<content:encoded><![CDATA[<p>Cool. <img src='http://www.phpied.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

