Skip to content

FR: Disable saving a draft or entry until autosave completes #15013

Closed Answered by brandonkelly
joshmcoffman asked this question in Ideas
Discussion options

You must be logged in to vote

Craft ensures the same entry isn’t saved multiple times at the same time, via a mutex lock.

If that’s not working for you, it might be because your mutex component isn’t configured properly for the environment.

We improved the default mutex driver in Craft 4.6, which is now safe to use regardless of your hosting environment, so the easiest way to fix would be to ensure you’re running Craft 4.6+, and then go to config/app.php and delete your custom mutex config (if you have one).

The mutex lock won’t cover queue jobs though. Queue jobs are run asynchronously, usually after a delay. So if you’re doing some additional work on an entry via a queue job, preventing entry saves until after the a…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants