[wp-trac] Re: [WordPress Trac] #9005: Cron spawning improvements
WordPress Trac
wp-trac at lists.automattic.com
Sat Jan 31 20:31:19 GMT 2009
#9005: Cron spawning improvements
-------------------------+--------------------------------------------------
Reporter: azaozz | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.8
Component: General | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by azaozz):
Replying to [comment:9 Denis-de-Bernardy]:
> I smell trouble. Picture a super-cached site. Php, let alone WP, doesn't
even get loaded...
Actually the opposite would be worse when a page with the AJAX js is
cached.
> More recent posts are a different matter of course -- you wouldn't want
an ajax call around when your site's on Digg.
Exactly, will have to add the AJAX only on posts that are couple of days
old.
Replying to [comment:11 filosofo]:
> Could you elaborate? wp_ob_end_flush_all() is called on shutdown with
priority 1...
Yes, in theory the browser should display the page before calling wp-cron.
However while testing that wasn't always the case. The test: added 5
seconds delay to wp-cron and ran it constantly. While accessing the site
with two browsers concurrently, one would wait for 5 sec. sometimes before
showing the post.
Think that has been tried before too but didn't make it into core.
--
Ticket URL: <http://trac.wordpress.org/ticket/9005#comment:12>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list