[wp-trac] [WordPress Trac] #56135: WP_Term_Query cache never expiring with persistent object cache

WordPress Trac noreply at wordpress.org
Mon Jul 4 08:27:20 UTC 2022


#56135: WP_Term_Query cache never expiring with persistent object cache
--------------------------+-----------------------------
 Reporter:  skithund      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:  6.0
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 After WordPress 6.0 release and ticket:54511 in core, we’ve been hitting
 with issues with persistent object cache.
 The keys are never expired from cache and because of ever changing cache
 keys on `get_terms()` the cache is just filling up (memory).
 On a busy-ish WooCommerce site with changing terms we’re having hundreds
 of thousands of cached keys/items and 13+ gigs of used redis memory in a
 week (on a site with 2 gig database).
 I’ve gone through [https://core.trac.wordpress.org/ticket/54511 original
 trac ticket], performance-team
 [https://github.com/WordPress/performance/issues/78 Github issue] and
 [https://make.wordpress.org/core/2022/04/28/taxonomy-performance-
 improvements-in-wordpress-6-0/ dev-note on make], but none of them mention
 persistent caching anywhere.
 At the moment we're forced to use `WP_REDIS_MAXTTL` (feature of redis-
 cache plugin) to force cache expiration.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56135>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list