Opened 12 years ago
Closed 11 years ago
#28743 closed enhancement (fixed)
clean_term_cache does not obey wp_suspend_cache_invalidation
| Reported by: | rmccue | Owned by: | johnbillion |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.3 |
| Component: | Taxonomy | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
If you call wp_suspend_cache_invalidation( true ), then use wp_insert_term, clean_term_cache still clears the cache for the taxonomy.
This is in contrast to clean_post_cache and clean_attachment_cache
Attachments (1)
Change History (8)
#2
@
12 years ago
Oh good, I came here to report just this bug!
I'm in the process of upserting around 50K posts and running into severe memory issues whenever I run wp_update_term() because the clean_object_term_cache() call in there still pointlessly loops through every single object with the term. You have to check wp_suspend_cache_invalidation() _before_ going into that foreach chain.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I added a patch for this in #21760. It's strongly tied to the work being done in that ticket, so I thought it belonged there.