[wp-trac] [WordPress Trac] #35797: delete_metadata should only delete metadata cache entries with the value specified in $meta_value arg

WordPress Trac noreply at wordpress.org
Fri Feb 12 02:46:31 UTC 2016


#35797: delete_metadata should only delete metadata cache entries with the value
specified in $meta_value arg
--------------------------------+------------------------------------------
 Reporter:  rahal.aboulfeth     |       Owner:  boonebgorges
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:  4.5
Component:  Options, Meta APIs  |     Version:  trunk
 Severity:  normal              |  Resolution:  fixed
 Keywords:  has-patch           |     Focuses:  administration, performance
--------------------------------+------------------------------------------
Changes (by boonebgorges):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"36511"]:
 {{{
 #!CommitTicketReference repository="" revision="36511"
 In `delete_metadata()`, only invalidate cache for affected objects.

 The `$delete_all` flag in `delete_metadata()` triggers cache invalidation
 for
 multiple objects. Previously, invalidation took place for all objects
 matching
 the `$meta_key` parameter, regardless of whether `$meta_value` was also
 set.
 This resulted in overly aggressive invalidation.

 Props rahal.aboulfeth.
 Fixes #35797.
 }}}

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


More information about the wp-trac mailing list