[wp-trac] [WordPress Trac] #11903: insert_with_markers is not threadsafe
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 15 22:47:19 UTC 2010
#11903: insert_with_markers is not threadsafe
--------------------------+-------------------------------------------------
Reporter: strings28 | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Permalinks | Version: 2.9
Severity: major | Keywords: needs-patch
--------------------------+-------------------------------------------------
Comment(by Denis-de-Bernardy):
I don't like the flock() idea. flock() isn't always available and is
tricky to use on some servers, as was revealed by plugins such as wp-cache
and its derivatives.
the "standard" workaround is to write to a temporary file, and then to
rename the temporary file, overwriting the target file as needed.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11903#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list