[wp-trac] [WordPress Trac] #36949: Term exists should use get_terms internally

WordPress Trac noreply at wordpress.org
Fri Apr 21 21:15:11 UTC 2017


#36949: Term exists should use get_terms internally
--------------------------+-----------------------------
 Reporter:  spacedmonkey  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Taxonomy      |     Version:  2.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  performance
--------------------------+-----------------------------

Comment (by boonebgorges):

 Thinking about this a little more. The problem with imports etc is that
 cache invalidation is being skipped, but the cache is still being accessed
 for lookups. What we ought to have is something like
 `wp_suspend_cache_access()` (bad name, but you get the idea), which would
 prevent the cache from being accessed for lookups in places like
 `term_exists()` and `get_term_by()`.

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


More information about the wp-trac mailing list