[wp-trac] [WordPress Trac] #52710: Taxonomy: Make it possible to bypass automatic caching of results in `get_terms()`

WordPress Trac noreply at wordpress.org
Mon Sep 11 04:37:09 UTC 2023


#52710: Taxonomy: Make it possible to bypass automatic caching of results in
`get_terms()`
----------------------------------------+------------------------------
 Reporter:  dlh                         |       Owner:  (none)
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Taxonomy                    |     Version:  2.3
 Severity:  normal                      |  Resolution:
 Keywords:  needs-unit-tests has-patch  |     Focuses:  performance
----------------------------------------+------------------------------

Comment (by peterwilsoncc):

 Replying to [comment:3 peterwilsoncc]:
 > For sites wishing to avoid the issue you describe, a one line plugin
 `wp_cache_add_non_persistent_groups( 'terms' )` may achieve the same
 thing.
 >
 > @dlh are you able to let me know if I am missing something?

 In #57625 the cache group for term queries was changed to `term-queries`
 so this may be an option again for your use case @dlh.

 ----

 I've added a couple of notes to the updated PR.

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


More information about the wp-trac mailing list