wp-front-end-editor icon indicating copy to clipboard operation
wp-front-end-editor copied to clipboard

Concurency control

Open scribu opened this issue 14 years ago • 0 comments

FEE could have a mechanism that signals when user A is about to overwrite a change that user B made in the meantime.

get XHR response:

{ content: '...', hash: 'x12' }

save XHR message:

{ new_content: '...', hash: 'x12' }

save processing:

$old_hash = md5( $old_content );
if ( $old_hash != $received_hash  )
    die( 'Content changed in the meantime' );

scribu avatar May 14 '11 18:05 scribu