Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#35208 closed defect (bug) (fixed)

Timeouts updating terms related to large amount of objects

Reported by: mwidmann Owned by: boonebgorges
Priority: normal Milestone: 4.5
Component: Taxonomy Version: 3.9
Severity: normal Keywords: has-patch
Cc: Focuses: performance

Description

In relation to #28743

Having a term with a large number of objects related to it causes a call to clean_object_term_cache() when it's update. Especially when an object-cache is used this can lead to a huge number of network calls, various timeouts and overhead.

This could be avoided if clean_object_term_cache() obeyed to $_wp_suspend_cache_invalidation.

I've attached a patch that should solve this.

Change History (2)

#1 @boonebgorges
11 years ago

  • Focuses administration removed
  • Keywords has-patch added
  • Milestone Awaiting Review4.5

Thanks for the patch!

#2 @boonebgorges
11 years ago

  • Owner set to boonebgorges
  • Resolutionfixed
  • Status newclosed

In 36076:

Respect $_wp_suspend_cache_invalidation in clean_object_term_cache().

Props mwidmann.
Fixes #35208.

Note: See TracTickets for help on using tickets.