Forums

[resolved] How does WP handle multiple admins editing simultaneously? (5 posts)

  1. altoidboy
    Member
    Posted 10 months ago #

    Thinking of doing a new site using WP, but it's a community site with several admins, and I'm wondering how WP is coded to handle the (likely, in my case) situation where multiple admins might try and edit the same post simultaneously.

    I've built sites like this before in Joomla, which employs a "checkout" system, so once one admin is editing a page, other admins are prevented from editing it at the same time. Does this exist in WP, or is it possible to add it? Or any other suggested workarounds?

  2. MichaelH
    Volunteer
    Posted 10 months ago #

    WordPress will tell you if another user is editing a post and will allow you to edit the post but warn you with a message such as "Jane is currently editing this article. If you update it, you will overwrite the changes." when you go to save the post.

  3. altoidboy
    Member
    Posted 10 months ago #

    Thanks Michael. Is there any further documentation on how this works? How long is the article "checked out" to Jane? What if Jane navigates away and never clicks Save? Will that article permanently show as "Jane is currently editing"? Does it time out after a certain period of time?

  4. Otto
    Tech Ninja
    Posted 10 months ago #

    A "post lock" lasts 2 minutes by default. The autosave happens once a minute, and resets the lock. So as long as somebody is editing, and autosaving, it will last until they save and stop editing it for 2 minutes.

  5. altoidboy
    Member
    Posted 10 months ago #

    Fantastic - thank you both for the information.

Reply

You must log in to post.

About this Topic