-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Work around race condition when publishing local only posts #959
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we also maybe add a slight delay to the scheduler to give more time for the race condition to resolve?
with a "hacky" do have an idea if there is a better hook to use? maybe #668 ??? |
I'm thinking about where we schedule the cron job here. When the first arg is \wp_schedule_single_event( \time() + 30, $hook, $args ); Or even less, maybe 5-10, something like that. Just gives all the saving processes a little more time to settle before blasting out the post. |
I See! Makes sense! |
@mattwiebe added all changes! |
It seems that the meta-information might not always be stored when saving a new post.
See discussion here: https://sueden.social/@freuwesen/113378039196820044 (it is in german but mastodon can translate).
Proposed changes: