[wp-trac] [WordPress Trac] #18738: Improving cron spawning and other non-blocking HTTP requests
WordPress Trac
noreply at wordpress.org
Tue Jan 8 02:28:49 UTC 2019
#18738: Improving cron spawning and other non-blocking HTTP requests
----------------------------------+-----------------------
Reporter: johnbillion | Owner: (none)
Type: enhancement | Status: reopened
Priority: normal | Milestone: 5.1
Component: HTTP API | Version:
Severity: normal | Resolution:
Keywords: has-patch wpcom-hack | Focuses:
----------------------------------+-----------------------
Comment (by pento):
I'm not wild about adding a new constant for this, I'd be fine with just
calling it as in [attachment:"wp_cron-fastcgi_finish.diff"].
As @jnylen0 discovered, calling `ignore_user_abort( true )` will fix the
problem with output flushing causing the script to exit.
Also, as this will [https://bugs.php.net/bug.php?id=67583 throw an error]
on [https://github.com/php/php-
src/commit/a46bbdda2e082070bd67ecdc500d9671bf1ab823 PHP < 7.0.16], I'm
also fine with restricting it to newer PHP versions.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18738#comment:36>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list