[wp-trac] Re: [WordPress Trac] #7068: cron improvement
WordPress Trac
wp-trac at lists.automattic.com
Mon Sep 22 16:10:55 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):
I believe this race condition is unavoidable as long as it is driven off
of hits to the site itself, as those hits are unpredictable. Two in quick
succession can always cause wp-cron to hit twice so the most you can do is
reduce it.
PHP does not really have a good interprocess mutex mechanism. There's one
over here that uses semaphores or file locking, but I have no information
on how reliable such a thing would be:
http://in2.php.net/manual/en/ref.sem.php
--
Ticket URL: <http://trac.wordpress.org/ticket/7068#comment:8>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list