<?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: Run WordPress tasks from real cron job</title>
	<atom:link href="http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/</link>
	<description></description>
	<lastBuildDate>Sun, 30 Oct 2011 06:51:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Sam Kear</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-1376</link>
		<dc:creator>Sam Kear</dc:creator>
		<pubDate>Sun, 14 Aug 2011 03:42:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-1376</guid>
		<description>Thanks for the detailed information!  The Wordpress developers should revisit how they implement cron in core.</description>
		<content:encoded><![CDATA[<p>Thanks for the detailed information!  The WordPress developers should revisit how they implement cron in core.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: arena</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-1375</link>
		<dc:creator>arena</dc:creator>
		<pubDate>Wed, 10 Aug 2011 03:44:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-1375</guid>
		<description>Hi,

Thank you for this post.

Here is a new version of wp-cron-multi-blog.php 

http://goo.gl/Tz9GC</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thank you for this post.</p>
<p>Here is a new version of wp-cron-multi-blog.php </p>
<p><a href="http://goo.gl/Tz9GC" rel="nofollow">http://goo.gl/Tz9GC</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tony</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-1052</link>
		<dc:creator>tony</dc:creator>
		<pubDate>Fri, 06 May 2011 17:23:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-1052</guid>
		<description>Thanks for sharing your research and script. I was having the same issue you experienced using WP-Supercache with mod_rewrite caching not triggering garbage collection, and future posts failing to publish with &quot;schedule missed&quot; errors.</description>
		<content:encoded><![CDATA[<p>Thanks for sharing your research and script. I was having the same issue you experienced using WP-Supercache with mod_rewrite caching not triggering garbage collection, and future posts failing to publish with &#8220;schedule missed&#8221; errors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-937</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Wed, 06 Apr 2011 13:44:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-937</guid>
		<description>Simple but brilliant. Thank you. Your idea saved me hours.</description>
		<content:encoded><![CDATA[<p>Simple but brilliant. Thank you. Your idea saved me hours.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Forumcivico</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-910</link>
		<dc:creator>Forumcivico</dc:creator>
		<pubDate>Sat, 19 Mar 2011 14:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-910</guid>
		<description>@Joe Brewer

Just add this:

wget http://domain.tld/wp-cron-multi-blog.php &gt; /dev/null 2&gt;&amp;1

For the /dev/null 2&gt;&amp;1 part:

If one run a cron job, any output that the script would send to stderr is sent as a mail to the owner of the script, which can be a tad annoying if the script runs regularily, with output you don’t need or want, or can do anything about.

The graceful way to handle this in any shell is as follows: Redirect the output of stderr to stdout, and then redirect this combined output to /dev/null</description>
		<content:encoded><![CDATA[<p>@Joe Brewer</p>
<p>Just add this:</p>
<p>wget <a href="http://domain.tld/wp-cron-multi-blog.php" rel="nofollow">http://domain.tld/wp-cron-multi-blog.php</a> > /dev/null 2>&#038;1</p>
<p>For the /dev/null 2>&#038;1 part:</p>
<p>If one run a cron job, any output that the script would send to stderr is sent as a mail to the owner of the script, which can be a tad annoying if the script runs regularily, with output you don’t need or want, or can do anything about.</p>
<p>The graceful way to handle this in any shell is as follows: Redirect the output of stderr to stdout, and then redirect this combined output to /dev/null</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Brewer</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-522</link>
		<dc:creator>Joe Brewer</dc:creator>
		<pubDate>Fri, 26 Nov 2010 20:13:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-522</guid>
		<description>I&#039;ve worked it out!  I should have looked at the manual for wget, but anyway... Here is what I have:

wget http://www.domain.com/wp-cron.php?doing_wp_cron --output-document=cron.txt

Hope someone finds it useful.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve worked it out!  I should have looked at the manual for wget, but anyway&#8230; Here is what I have:</p>
<p>wget <a href="http://www.domain.com/wp-cron.php?doing_wp_cron" rel="nofollow">http://www.domain.com/wp-cron.php?doing_wp_cron</a> &#8211;output-document=cron.txt</p>
<p>Hope someone finds it useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Brewer</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-509</link>
		<dc:creator>Joe Brewer</dc:creator>
		<pubDate>Wed, 24 Nov 2010 11:45:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-509</guid>
		<description>I&#039;ve successfully implemented this on one of my sites, however it is leaving a load of zero byte files in my root folder.  Is there anything I can add after the wget command so that the zero byte files are not saved.  If there is anything in the files, then I would need to see that for debugging purposes.

Thanks for the useful post.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve successfully implemented this on one of my sites, however it is leaving a load of zero byte files in my root folder.  Is there anything I can add after the wget command so that the zero byte files are not saved.  If there is anything in the files, then I would need to see that for debugging purposes.</p>
<p>Thanks for the useful post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: q292u</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-472</link>
		<dc:creator>q292u</dc:creator>
		<pubDate>Wed, 03 Nov 2010 12:32:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-472</guid>
		<description>One of my sites (www.supercars-for-sale.com) is on a free hosting account.
It kept getting suspended due to excessive resource use. (Feedwordpress plugin on wordpress..)
I&#039;ve switched fwp to manual/cron option, AND used the disable_wp_cron setting. If it stays up 24 hours I&#039;m going to look at implementing a Non-MU version of your script. (I&#039;ve already written it.).
I&#039;ll let you know what happens..</description>
		<content:encoded><![CDATA[<p>One of my sites (www.supercars-for-sale.com) is on a free hosting account.<br />
It kept getting suspended due to excessive resource use. (Feedwordpress plugin on wordpress..)<br />
I&#8217;ve switched fwp to manual/cron option, AND used the disable_wp_cron setting. If it stays up 24 hours I&#8217;m going to look at implementing a Non-MU version of your script. (I&#8217;ve already written it.).<br />
I&#8217;ll let you know what happens..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chovy</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-437</link>
		<dc:creator>chovy</dc:creator>
		<pubDate>Fri, 08 Oct 2010 06:06:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-437</guid>
		<description>I&#039;m not sure how relevant this is with WP3.0

w3 total cache is what&#039;s killing my cpu with this internal wp-cron.php garbage.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure how relevant this is with WP3.0</p>
<p>w3 total cache is what&#8217;s killing my cpu with this internal wp-cron.php garbage.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DrLightman</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-417</link>
		<dc:creator>DrLightman</dc:creator>
		<pubDate>Fri, 01 Oct 2010 09:53:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-417</guid>
		<description>@Rick : be aware if you copied the DEFINE from here, the quotes getting copied are not the ones PHP like. You have to manually edit them (I&#039;m talking about the single charachters preceding and after DISABLE_WP_CRON)</description>
		<content:encoded><![CDATA[<p>@Rick : be aware if you copied the DEFINE from here, the quotes getting copied are not the ones PHP like. You have to manually edit them (I&#8217;m talking about the single charachters preceding and after DISABLE_WP_CRON)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pascal</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-391</link>
		<dc:creator>Pascal</dc:creator>
		<pubDate>Wed, 15 Sep 2010 00:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-391</guid>
		<description>Looks like you are breaking the PHP code.

Syntax error on line 1... hum did you put the define before the &quot;&lt;?php&quot; tag???

Pascal.</description>
		<content:encoded><![CDATA[<p>Looks like you are breaking the PHP code.</p>
<p>Syntax error on line 1&#8230; hum did you put the define before the &#8220;<?php&#8221; tag???</p>
<p>Pascal.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-385</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Sun, 05 Sep 2010 15:02:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-385</guid>
		<description>Pascal:

I tried your fix however when I put in line of code 
define(&#039;DISABLE_WP_CRON&#039;, true); 
I get blank page on my wp admin panel that states  &quot;syntax error line 1&quot;  which causes me to have to go back into wp-config.php file and delete that line of code.  As a result I am unable to disable the wp-cron....Any other suggestions on how I can make this work?

Thanks,

Rick</description>
		<content:encoded><![CDATA[<p>Pascal:</p>
<p>I tried your fix however when I put in line of code<br />
define(&#8216;DISABLE_WP_CRON&#8217;, true);<br />
I get blank page on my wp admin panel that states  &#8220;syntax error line 1&#8243;  which causes me to have to go back into wp-config.php file and delete that line of code.  As a result I am unable to disable the wp-cron&#8230;.Any other suggestions on how I can make this work?</p>
<p>Thanks,</p>
<p>Rick</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pascal</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-356</link>
		<dc:creator>Pascal</dc:creator>
		<pubDate>Sat, 17 Jul 2010 17:39:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-356</guid>
		<description>I haven&#039;t try Wordpress 3.0 yet but I guess it would be like Wordpress MU.

Also consider doing the change stated by Jason Potkanski above.

Pascal.</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t try WordPress 3.0 yet but I guess it would be like WordPress MU.</p>
<p>Also consider doing the change stated by Jason Potkanski above.</p>
<p>Pascal.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Len</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-355</link>
		<dc:creator>Len</dc:creator>
		<pubDate>Thu, 15 Jul 2010 22:45:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-355</guid>
		<description>I just upgraded to WP 3.0 and am having issues with the wp-cron.php spiking my vps.  I am looking at solutions like yours but wondering about the new multisite function in WP.

Will this need to be run like the MU example, and what difference in setup with sub-domain or sub-directory.

Thanks,
Len</description>
		<content:encoded><![CDATA[<p>I just upgraded to WP 3.0 and am having issues with the wp-cron.php spiking my vps.  I am looking at solutions like yours but wondering about the new multisite function in WP.</p>
<p>Will this need to be run like the MU example, and what difference in setup with sub-domain or sub-directory.</p>
<p>Thanks,<br />
Len</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pascal</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-346</link>
		<dc:creator>Pascal</dc:creator>
		<pubDate>Tue, 06 Jul 2010 22:21:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-346</guid>
		<description>I will definitly take a look at this switch_to_blog function and update my post accordingly.

Thanks!
Pascal.</description>
		<content:encoded><![CDATA[<p>I will definitly take a look at this switch_to_blog function and update my post accordingly.</p>
<p>Thanks!<br />
Pascal.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Potkanski</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-345</link>
		<dc:creator>Jason Potkanski</dc:creator>
		<pubDate>Tue, 06 Jul 2010 16:36:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-345</guid>
		<description>Change wp_remote_post line to: 

switch_to_blog($blog-&gt;blog_id);
wp_cron();
restore_current_blog();

Will run much faster.</description>
		<content:encoded><![CDATA[<p>Change wp_remote_post line to: </p>
<p>switch_to_blog($blog-&gt;blog_id);<br />
wp_cron();<br />
restore_current_blog();</p>
<p>Will run much faster.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan O'Neil</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-344</link>
		<dc:creator>Dan O'Neil</dc:creator>
		<pubDate>Mon, 05 Jul 2010 19:25:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-344</guid>
		<description>Thank you, thank you, thank you. Switched to a standard cron job and my scheduled posts and all the other stuff is now working beautifully... saved me a big headache!</description>
		<content:encoded><![CDATA[<p>Thank you, thank you, thank you. Switched to a standard cron job and my scheduled posts and all the other stuff is now working beautifully&#8230; saved me a big headache!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Binh Nguyen</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-337</link>
		<dc:creator>Binh Nguyen</dc:creator>
		<pubDate>Tue, 29 Jun 2010 04:06:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-337</guid>
		<description>Thanks for this. I spent days looking for a solution for every minute cron run. 

Well I use WPMU so also the php command didn&#039;t work. I didn&#039;t know I must use the wget command.

Bravo!</description>
		<content:encoded><![CDATA[<p>Thanks for this. I spent days looking for a solution for every minute cron run. </p>
<p>Well I use WPMU so also the php command didn&#8217;t work. I didn&#8217;t know I must use the wget command.</p>
<p>Bravo!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wp-popular.com &#187; Blog Archive &#187; Pascal’s blog » Run Wordpress tasks from real cron job</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-334</link>
		<dc:creator>wp-popular.com &#187; Blog Archive &#187; Pascal’s blog » Run Wordpress tasks from real cron job</dc:creator>
		<pubDate>Wed, 16 Jun 2010 00:07:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-334</guid>
		<description>[...] the original here: Pascal’s blog » Run Wordpress tasks from real cron job Tags: disable-wp-cron, good-explanation, [...]</description>
		<content:encoded><![CDATA[<p>[...] the original here: Pascal’s blog » Run WordPress tasks from real cron job Tags: disable-wp-cron, good-explanation, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pascal</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-327</link>
		<dc:creator>Pascal</dc:creator>
		<pubDate>Tue, 01 Jun 2010 01:25:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-327</guid>
		<description>Hi,

For a standard Wordpress installation, you are right.  And I would prefer that way instead of the wget method.  But for a Wordpress MU installation, that&#039;s different because the API determine the current blog context based on the URI, so it cannot run from command line PHP.

Pascal.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>For a standard WordPress installation, you are right.  And I would prefer that way instead of the wget method.  But for a WordPress MU installation, that&#8217;s different because the API determine the current blog context based on the URI, so it cannot run from command line PHP.</p>
<p>Pascal.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

