[wp-trac] Re: [WordPress Trac] #4566: Cron Not Getting Called
(fsockopen failing)
WordPress Trac
wp-trac at lists.automattic.com
Mon Jul 2 19:09:58 GMT 2007
#4566: Cron Not Getting Called (fsockopen failing)
-----------------------------------+----------------------------------------
Reporter: chewblocka | Owner: Nazgul
Type: defect | Status: assigned
Priority: normal | Milestone: 2.3 (trunk)
Component: Administration | Version: 2.2.1
Severity: normal | Resolution:
Keywords: cron future has-patch |
-----------------------------------+----------------------------------------
Comment (by Otto42):
The reason for this fsockopen is to make the wp-cron.php file execute
asynchronously, correct? There's other ways to do that, perhaps the
program should try some of those other ways as well if one fails.
You could use [http://us.php.net/pcntl_fork pcntl_fork] to do it, if the
PHP process is not running as an Apache module. Fortunately, pcntl_fork
gives you feedback when it won't work (return value of -1).
Alternately, if nothing else works, you could just include the wp-cron.php
file and make it run that way. Yes, it won't be asynchronous, but at least
it'll work.
--
Ticket URL: <http://trac.wordpress.org/ticket/4566#comment:6>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list