[wp-trac] [WordPress Trac] #22176: Cache the results of the posts_request_ids query

WordPress Trac noreply at wordpress.org
Thu Aug 10 13:15:02 UTC 2017


#22176: Cache the results of the posts_request_ids query
-------------------------------------------------+-------------------------
 Reporter:  ryan                                 |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Query                                |  Release
 Severity:  normal                               |     Version:  3.4.2
 Keywords:  has-patch 2nd-opinion has-unit-      |  Resolution:
  tests                                          |     Focuses:
                                                 |  performance
-------------------------------------------------+-------------------------
Changes (by spacedmonkey):

 * keywords:  has-patch needs-unit-tests 2nd-opinion => has-patch 2nd-
     opinion has-unit-tests


Comment:

 [https://core.trac.wordpress.org/attachment/ticket/22176/22176.4.diff
 22176.4.diff] Adds unit tests.

 Other changes include
 - Cache generation is outside of if statement as cache key is used in
 other parts of code.
 - The posts cache group is invalidated when meta data is
 added/deleted/updated. See #40669
 - Cache key is salted with last changed of group terms. This helps
 invalidation of taxonomy queries.

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


More information about the wp-trac mailing list