[wp-trac] [WordPress Trac] #54511: Remove cache time limitation in WP_Term_Query

WordPress Trac noreply at wordpress.org
Mon Nov 29 22:10:56 UTC 2021


#54511: Remove cache time limitation in WP_Term_Query
--------------------------+------------------------------
 Reporter:  spacedmonkey  |       Owner:  (none)
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Taxonomy      |     Version:  4.6
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  performance
--------------------------+------------------------------

Comment (by flixos90):

 I don't recall why this was introduced. Maybe there are some limitations
 in the current cache invalidation for term queries, and this was
 implemented to more or less cater for that. Or it could have been to not
 pollute the object cache, since those term query hashes used for cache
 keys can frequently change.

 Anyway, since this isn't present in other object type query
 implementations, at a high level I agree this should be removed at some
 point. However, we should make sure it isn't indeed there for a reason
 where removing it could result in a regression.

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


More information about the wp-trac mailing list