[wp-trac] [WordPress Trac] #61194: Duplicate Query for getting Privacy Policy Page
WordPress Trac
noreply at wordpress.org
Sat May 11 07:12:23 UTC 2024
#61194: Duplicate Query for getting Privacy Policy Page
----------------------------+-----------------------------
Reporter: aftab.alam8028 | Owner: (none)
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Privacy | Version: 6.2
Severity: major | Keywords:
Focuses: performance |
----------------------------+-----------------------------
WP stores the privacy policy page id in wp_options table under
"wp_page_for_privacy_policy" option_key.
If it has value like "3" and if that page id doesnot exist then it is
firing approx 78 duplicate query.
SELECT * FROM wp_posts WHERE ID = 3 LIMIT 1
This query is running only in UI side.
If I select a page from Settings > Privacy then duplicate query is not
showing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61194>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list