Skip to content
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

Fix job queueing when a post is saved or trashed. #545

Merged
merged 2 commits into from
May 4, 2020

Conversation

john-shaffer
Copy link
Contributor

This fixes a regression introduced in 09847fd,
but rather than simply revert the relevant changes made there, I opted to
move the calls to CoreOptions::getValue into the handlers, so they will
only hit the DB when the hooks fire, rather than potentially every page load.

Fixes #544.

This fixes a regression introduced in 09847fd,
but rather than simply revert the relevant changes made there, I opted to
move the calls to CoreOptions::getValue into the handlers, so they will
only hit the DB when the hooks fire, rather than potentially every page load.
savePosted is normally called only when the Options page is POSTed, so the
add_action calls aren't any use here.
@leonstafford leonstafford merged commit b3e08f5 into elementor:master May 4, 2020
@leonstafford
Copy link
Contributor

Beautiful, thanks @john-shaffer!

I'm unable to do an end to end test right now, but looks good and better than broken!

@john-shaffer john-shaffer deleted the 544-fix-queueing-jobs branch November 6, 2021 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Queueing jobs on post save/deletion is broken
2 participants