[wp-trac] [WordPress Trac] #22176: Cache the results of the posts_request_ids query
WordPress Trac
noreply at wordpress.org
Thu Aug 25 04:21:56 UTC 2022
#22176: Cache the results of the posts_request_ids query
-------------------------------------------------+-------------------------
Reporter: ryan | Owner:
| peterwilsoncc
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.1
Component: Query | Version: 3.4.2
Severity: normal | Resolution: fixed
Keywords: has-patch 2nd-opinion has-unit- | Focuses:
tests early needs-testing needs-dev-note | performance
commit |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"53941" 53941]:
{{{
#!CommitTicketReference repository="" revision="53941"
Query: Cache post ID database query within `WP_Query`.
Add object caching to the first database query in `WP_Query`, ie the
database query for post IDs that match the desired result. Randomly
ordered queries remain uncached as they are not intended to return
consistent results.
Caching of ID queries is enabled by default, per the post object, term and
meta caches.
Props spacedmonkey, aaroncampbell, batmoo, chriscct7, costdev, dd32,
drewapicture, johnbillion, mukesh27, nacin, ocean90, peterwilsoncc, ryan,
scribu, sergeybiryukov, tillkruss.
Fixes #22176.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22176#comment:48>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list