WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#35208 closed defect (bug) (fixed)

Timeouts updating terms related to large amount of objects

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

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
4 years ago

  • Focuses administration removed
  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 4.5

Thanks for the patch!

#2 @boonebgorges
4 years ago

  • Owner set to boonebgorges
  • Resolution set to fixed
  • Status changed from new to closed

In 36076:

Respect $_wp_suspend_cache_invalidation in clean_object_term_cache().

Props mwidmann.
Fixes #35208.

Note: See TracTickets for help on using tickets.