[wp-trac] [WordPress Trac] #22176: Cache the results of the posts_request_ids query
WordPress Trac
noreply at wordpress.org
Tue Sep 27 21:22:56 UTC 2022
#22176: Cache the results of the posts_request_ids query
-------------------------------------------------+-------------------------
Reporter: ryan | Owner:
| peterwilsoncc
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.1
Component: Query | Version: 3.4.2
Severity: normal | Resolution:
Keywords: needs-dev-note has-patch has-unit- | Focuses:
tests add-to-field-guide | performance
-------------------------------------------------+-------------------------
Changes (by spacedmonkey):
* status: closed => reopened
* resolution: fixed =>
Comment:
Reopening, as I have discovered a couple of issues when persistent Object
Caching.
- Issue 1 - Cache add is called a lot when persistent Object Caching is
enabled. This is because `update_post_caches` is called. This function
should not be called when object cache is enabled.
- Issue 2 - Cache set is called every WP_Query run, not only the first.
CC @peterwilsoncc to review my [https://github.com/WordPress/wordpress-
develop/pull/3348 PR].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/22176#comment:63>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list