[wp-trac] [WordPress Trac] #59442: Duplicate query in WP_Query
WordPress Trac
noreply at wordpress.org
Mon Oct 2 12:30:20 UTC 2023
#59442: Duplicate query in WP_Query
------------------------------------+--------------------------
Reporter: spacedmonkey | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.4
Component: Query | Version: 6.2
Severity: normal | Resolution:
Keywords: has-patch dev-feedback | Focuses: performance
------------------------------------+--------------------------
Comment (by thekt12):
One of the main reason we get multiple queries for the same SQL is the
hash takes serialised args as string for hashing, leading to a different
key for even slightest of change in args.
I have documented it in ->
https://core.trac.wordpress.org/ticket/59492
Following PR, solves the current issue along with possibility of any more
duplicates in different scenerio.
https://github.com/WordPress/wordpress-develop/pull/5347/files
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59442#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list