[wp-trac] [WordPress Trac] #14983: Get cache object by field

WordPress Trac noreply at wordpress.org
Sat Jun 11 04:07:58 UTC 2016


#14983: Get cache object by field
---------------------------------------------------+----------------------
 Reporter:  johnbillion                            |       Owner:
     Type:  enhancement                            |      Status:  closed
 Priority:  normal                                 |   Milestone:
Component:  Cache API                              |     Version:
 Severity:  normal                                 |  Resolution:  wontfix
 Keywords:  has-patch needs-refresh needs-testing  |     Focuses:
---------------------------------------------------+----------------------
Changes (by boonebgorges):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Future Release =>


Comment:

 The cache backends I am familiar with do not have any support for groups.
 I'm afraid that the current proposal - though great conceptually - is not
 going to work given this limitation. Field-specific lookups, like in
 `get_term_by()`, will always need either (a) their own cache, or (b) to
 become wrappers for the more generic query, whose cache key is salted with
 an incrementor.

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


More information about the wp-trac mailing list