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

Check DOING_AUTOSAVE before flushing transients #648

Merged
merged 1 commit into from
Nov 14, 2014

Conversation

nickdaugherty
Copy link
Contributor

So that we don’t flush transients more often than necessary.

Fixes #646

So that we don’t flush transients more often than necessary.

Fixes Automattic#646
obenland added a commit that referenced this pull request Nov 14, 2014
Check DOING_AUTOSAVE before flushing transients.

Fixes #646.
@obenland obenland merged commit b550416 into Automattic:master Nov 14, 2014
@philiparthurmoore
Copy link
Collaborator

Lovely. Thanks for this.

@mjangda
Copy link
Member

mjangda commented Nov 15, 2014

We could take this one step lower: instead of save_post, hook into set_object_terms and only do the delete when 'category' === $taxonomy:

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.

Check DOING_AUTOSAVE in _s_category_transient_flusher()
4 participants