[wp-trac] [WordPress Trac] #28743: clean_term_cache does not obey wp_suspend_cache_invalidation

WordPress Trac noreply at wordpress.org
Tue Aug 5 02:13:35 UTC 2014


#28743: clean_term_cache does not obey wp_suspend_cache_invalidation
--------------------------+------------------------------
 Reporter:  rmccue        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Taxonomy      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by goblindegook):

 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28743#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list