[wp-trac] [WordPress Trac] #40669: Proper query cache invalidation on queries meta queries

WordPress Trac noreply at wordpress.org
Thu May 4 19:34:49 UTC 2017


#40669: Proper query cache invalidation on queries meta queries
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Options, Meta APIs                   |  Review
 Severity:  normal                               |     Version:
 Keywords:  has-patch dev-feedback needs-unit-   |  Resolution:
  tests                                          |     Focuses:
                                                 |  performance
-------------------------------------------------+-------------------------
Changes (by spacedmonkey):

 * keywords:   => has-patch dev-feedback needs-unit-tests


Comment:

 In my first patch, I have changed the meta api to add a new a last_changed
 value in cache. I have then salted the query cache keys with meta cache,
 only if meta query is set. There is no need, if the query will not join to
 the meta table.

 Related: #40229 #38025 #22176

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


More information about the wp-trac mailing list