[wp-trac] Re: [WordPress Trac] #7068: cron improvement
WordPress Trac
wp-trac at lists.automattic.com
Mon Sep 22 21:02:16 GMT 2008
#7068: cron improvement
-------------------------+--------------------------------------------------
Reporter: hailin | Owner: hailin
Type: enhancement | Status: reopened
Priority: high | Milestone: 2.7
Component: General | Version:
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by Otto42):
Mmmm... I don't think that he is, really. A single server setup can still
get high traffic, and the problem is that high traffic creates the race
condition. Sure, he only reduced it instead of fixing it, but still, that
reduction is enough to prevent a large load on the system.
By moving the doing_cron check into the main code, you reduce the number
of hits that occur to wp-cron.php in the first place. This is a
substantial change, because it prevents wp-cron.php from running and then
having to suddenly load all of WordPress up a few times just to check
doing_cron.
Because until the cron job waiting has actually processed, every hit to
the site would previously cause a hit to wp-cron. So until the job
finished, you doubled your load. Not a great way to do things.
Sure the best method is a real cron job, but not everybody can set those
up easily.
--
Ticket URL: <http://trac.wordpress.org/ticket/7068#comment:12>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list