Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #31767, comment 18


Ignore:
Timestamp:
10/02/2015 05:43:45 PM (10 years ago)
Author:
tigertech
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31767, comment 18

    initial v1  
    33On systems that support `flock()`, it should completely solve it; on systems that don't, the code cleanup of "writing everything all at once" will make it much less likely to happen (the new code is also noticeably far faster when calling `insert_with_markers` thousands of times in a test, reducing the amount of time a race condition could exist).
    44
    5 However, as @willmot noticed, it has a new bug: it doesn't create a missing file any more, and it needs to. Perhaps the fix for could be as simple as adding this at the top of the function:
     5However, as @willmot noticed, it has a new bug: it doesn't create a missing file any more, and it needs to. Perhaps the fix for that could be as simple as adding this at the top of the function:
    66
    77{{{