Opened 22 months ago
Last modified 8 weeks ago
#61194 assigned defect (bug)
Duplicate Query for getting Privacy Policy Page
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | 6.2 |
| Component: | Privacy | Keywords: | reporter-feedback |
| Focuses: | Cc: |
Description
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.
Change History (3)
#1
@
22 months ago
- Focuses performance removed
- Keywords needs-testing added
- Severity changed from major to normal
#3
@
8 weeks ago
- Keywords needs-testing removed
Reproduction Report
Description
This report validates whether the issue can be reproduced.
Environment
- WordPress: 6.9
- PHP: 8.3.30
- Server: PHP.wasm
- Database: WP_SQLite_Driver (Server: 8.0.38 / Client: 3.51.0)
- Browser: Chrome 144.0.0.0
- OS: Linux
- Theme: Twenty Twenty-Five 1.4
- MU Plugins: None activated
- Plugins:
- Query Monitor 3.20.2
- Test Reports 1.2.1
Actual Results
- ❌ Error condition doesn't occur (not reproducible).
- Even after deleting the page, set as the Privacy policy page and viewing the frontend. No visible queries are visible.
Additional Notes
- None
Supplemental Artifacts
Screencast:
https://files.catbox.moe/x2frp2.webm
Note: See
TracTickets for help on using
tickets.
Hi there and welcome to Trac!
I am unable to reproduce this issue so far. Here's what I did:
Whether I go to the dashboard, the homepage, or the privacy settings page, there isn't any big amount of duplicate queries like you mention it.
Could you please share more specific steps to reproduce? Verify that the issue still happens with all plugins disabled and when using one of the default themes.