<?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>Thu, 26 Aug 2010 14:53:21 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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>
	<item>
		<title>By: roman</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-325</link>
		<dc:creator>roman</dc:creator>
		<pubDate>Mon, 31 May 2010 16:16:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-325</guid>
		<description>Thanks for this good post!
 
I&#039;ve searched long to get this information. 
But I&#039;m wondering why the cronjob isn&#039;t directly triggered like this: 

  /path/to/php/cli/cli/php -f /path/to/wordpress/wp-cron.php

in my php experince I always call cron jobs like this - i use wordpress since three months and haven&#039;t found no page or post where this practice is used?</description>
		<content:encoded><![CDATA[<p>Thanks for this good post!</p>
<p>I&#8217;ve searched long to get this information.<br />
But I&#8217;m wondering why the cronjob isn&#8217;t directly triggered like this: </p>
<p>  /path/to/php/cli/cli/php -f /path/to/wordpress/wp-cron.php</p>
<p>in my php experince I always call cron jobs like this &#8211; i use wordpress since three months and haven&#8217;t found no page or post where this practice is used?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wp-popular.com &#187; Blog Archive &#187; Pascal’s blog » Run Wordpress tasks from real cron job » page 2</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-317</link>
		<dc:creator>wp-popular.com &#187; Blog Archive &#187; Pascal’s blog » Run Wordpress tasks from real cron job » page 2</dc:creator>
		<pubDate>Sat, 15 May 2010 15:06:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-317</guid>
		<description>[...] here: Pascal’s blog » Run Wordpress tasks from real cron job » page 2 Tags: [...]</description>
		<content:encoded><![CDATA[<p>[...] here: Pascal’s blog » Run Wordpress tasks from real cron job » page 2 Tags: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MPopovici</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-305</link>
		<dc:creator>MPopovici</dc:creator>
		<pubDate>Fri, 30 Apr 2010 12:06:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-305</guid>
		<description>Thanks for writing this. The line which disables wp-cron looks like its doing wonders for my sites, at least for now..</description>
		<content:encoded><![CDATA[<p>Thanks for writing this. The line which disables wp-cron looks like its doing wonders for my sites, at least for now..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maheshwar</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-302</link>
		<dc:creator>maheshwar</dc:creator>
		<pubDate>Wed, 28 Apr 2010 07:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-302</guid>
		<description>Hi,

Can anyone suggest that how can I stop the execution of a cron through page load for a particular plugin not for whole wordpress.
Actually, I want to run cron script through cron job.
I would appreciate your suggestion.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Can anyone suggest that how can I stop the execution of a cron through page load for a particular plugin not for whole wordpress.<br />
Actually, I want to run cron script through cron job.<br />
I would appreciate your suggestion.</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-290</link>
		<dc:creator>Pascal</dc:creator>
		<pubDate>Tue, 13 Apr 2010 19:21:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-290</guid>
		<description>Hi,

I run it every 30 minutes.  From what I have seen, it is used for publishing in future and cache clean-up.  So the good answer is it depends...
It depends on the plugins you are using.  Some plugins (like caching) sets scheduled tasks.  So based on your plugins and the latency (for publishing future posts for example) you are willing to accept, you should set the longest period as possible.  It is possible to run it every minutes as long as it doesn&#039;t run over 1 minute.  Otherwise it may overlap and start overloading your server.

Pascal.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I run it every 30 minutes.  From what I have seen, it is used for publishing in future and cache clean-up.  So the good answer is it depends&#8230;<br />
It depends on the plugins you are using.  Some plugins (like caching) sets scheduled tasks.  So based on your plugins and the latency (for publishing future posts for example) you are willing to accept, you should set the longest period as possible.  It is possible to run it every minutes as long as it doesn&#8217;t run over 1 minute.  Otherwise it may overlap and start overloading your server.</p>
<p>Pascal.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Audun</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-286</link>
		<dc:creator>Audun</dc:creator>
		<pubDate>Tue, 13 Apr 2010 09:09:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-286</guid>
		<description>How often do you run this crontab? Every minute? Every hour? If you turn it of on a standard wp-mu instance.. What will stop working? Only posting set to be published in the future?</description>
		<content:encoded><![CDATA[<p>How often do you run this crontab? Every minute? Every hour? If you turn it of on a standard wp-mu instance.. What will stop working? Only posting set to be published in the future?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: מרק ק.</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-274</link>
		<dc:creator>מרק ק.</dc:creator>
		<pubDate>Thu, 04 Mar 2010 03:43:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-274</guid>
		<description>You can probably make your script more efficient by managing the list of scheduled task, or the blog which has them, in a separate DB table.

Another enhancement might be to directly call the WP cron task execution API, after calling switch_to_blog for the appropriate blog number.</description>
		<content:encoded><![CDATA[<p>You can probably make your script more efficient by managing the list of scheduled task, or the blog which has them, in a separate DB table.</p>
<p>Another enhancement might be to directly call the WP cron task execution API, after calling switch_to_blog for the appropriate blog number.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Helgi Hrafn Halldórsson</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-269</link>
		<dc:creator>Helgi Hrafn Halldórsson</dc:creator>
		<pubDate>Wed, 17 Feb 2010 09:07:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-269</guid>
		<description>Thank you for this post. It helped me alot :P</description>
		<content:encoded><![CDATA[<p>Thank you for this post. It helped me alot <img src='http://blog.dreamdevil.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </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-266</link>
		<dc:creator>Pascal</dc:creator>
		<pubDate>Wed, 10 Feb 2010 02:12:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-266</guid>
		<description>Ok I will double-check it in case I did a copy/paste mistake.

What are your cron jobs skipped?  pre-publishing?

Pascal.</description>
		<content:encoded><![CDATA[<p>Ok I will double-check it in case I did a copy/paste mistake.</p>
<p>What are your cron jobs skipped?  pre-publishing?</p>
<p>Pascal.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DS</title>
		<link>http://blog.dreamdevil.com/index.php/2010/01/29/run-wordpress-tasks-from-real-cron-job/comment-page-1/#comment-265</link>
		<dc:creator>DS</dc:creator>
		<pubDate>Tue, 09 Feb 2010 16:17:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.dreamdevil.com/?p=222#comment-265</guid>
		<description>I implemented this in WPMU 2.9.1.1 with the wp-cron-multi-blog.php script and a /etc/crontab setup and it does not work at all for me.  If I manually browse to the script, it reports back as if its working/doing something, but doesn&#039;t appear to actually spawn the cron jobs.</description>
		<content:encoded><![CDATA[<p>I implemented this in WPMU 2.9.1.1 with the wp-cron-multi-blog.php script and a /etc/crontab setup and it does not work at all for me.  If I manually browse to the script, it reports back as if its working/doing something, but doesn&#8217;t appear to actually spawn the cron jobs.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
