[wp-trac] [WordPress Trac] #57498: Unnecessary writes to cache in `WP_Query`
WordPress Trac
noreply at wordpress.org
Wed Jan 18 12:42:01 UTC 2023
#57498: Unnecessary writes to cache in `WP_Query`
--------------------------+--------------------
Reporter: spacedmonkey | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.2
Component: Query | Version: 6.1
Severity: normal | Keywords:
Focuses: performance |
--------------------------+--------------------
Follow on from [55035] and #57373.
In `WP_Query`, the class calls the `update_post_caches` function. This
updates post caches. However, this function does not check to see if the
post is already in cache. For site using persistent object caches this can
result in lots of writes to cache that are unnecessary.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57498>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list