Opened 10 years ago
Closed 9 years ago
#28743 closed enhancement (fixed)
clean_term_cache does not obey wp_suspend_cache_invalidation
Reported by: | rmccue | Owned by: | johnbillion |
---|---|---|---|
Milestone: | 4.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | |
Focuses: | Cc: |
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
@
10 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.
#3
@
10 years ago
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
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.