[wp-trac] [WordPress Trac] #57645: Implement lazy loading term meta in WP_Term_Query

WordPress Trac noreply at wordpress.org
Wed Mar 29 11:28:21 UTC 2023


#57645: Implement lazy loading term meta in WP_Term_Query
--------------------------------------+--------------------------
 Reporter:  spacedmonkey              |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  6.3
Component:  Taxonomy                  |     Version:  4.4
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  performance
--------------------------------------+--------------------------

Comment (by spacedmonkey):

 > Would it be better to introduce an additional attribute to term queries,
 lazy_load_term_meta with the default value true?

 I did consider this, but the problem is that many developers do not use
 `update_term_meta_cache ` as is. Term meta is being loaded when it should
 not be. There are even places in core like #57701 where it is being
 loaded.

 I think that we should be aggressive in caching term meta, as looking at
 the plugin repo, it is not heavily used.

 Whatever is decided, we should do the same here #57801.

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


More information about the wp-trac mailing list