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

WordPress Trac noreply at wordpress.org
Thu Jun 22 20:07:23 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 needs-unit-tests 2nd-      |  Resolution:
  opinion                                        |     Focuses:
                                                 |  performance
-------------------------------------------------+-------------------------

Comment (by spacedmonkey):

 After talking to @boonebgorges about this ticket, I have updated it.
 Key changes.

 - Now it obeys the posts_pre_query filter
 - If tax_query is set, salt the cache key with term last changed.
 - Cache key is now generated from the sql string. This is because of the
 filters on the sql string.

 I think will need to look into #40669 to make sure post meta query run
 correctly.

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


More information about the wp-trac mailing list