Duplicate WP_Post::get_instance() query on single post pages

#1096500
  • Resolved Chuan Yun Chou (宓小楓)
    Rank Math free

    Hello,

    I’m experiencing a performance issue on my website’s single post pages. I’ve used the Query Monitor plugin to diagnose the problem.

    It shows a duplicate database query for WP_Post::get_instance() on every single post page load. The calls are coming directly from Rank Math’s OpenGraph functions for both Facebook and Twitter.

    Here is a screenshot of the Query Monitor report:
    https://peacefulmaple.com/wp-content/uploads/2025/09/Query-Monitor-screenshot.png

    Here are my site details:

    WordPress Version: 6.8.2

    Rank Math Version: 1.0.252.1

    Problematic Query: SELECT * FROM wpme_posts WHERE ID = 8218 LIMIT 1

    Could you please investigate why this query is being made twice? I believe this is a bug that causes unnecessary resource consumption.

    Thank you for your help.

Viewing 1 replies (of 1 total)
  • Hello,

    We apologize for the issue you are facing with the duplicate database query on your website’s single post pages. Thank you for providing detailed information about the problem, including the Query Monitor report and your site details.

    This type of performance issue can sometimes occur due to conflicts with other plugins or themes, or it may be related to how Rank Math is handling OpenGraph data. To further investigate this issue, we recommend the following steps:

    1. Disable Other Plugins: Temporarily disable all other plugins except for Rank Math to see if the duplicate query persists. If it resolves the issue, re-enable the plugins one by one to identify the conflicting plugin.

    2. Switch Themes: If disabling plugins does not resolve the issue, try switching to a default WordPress theme (like Twenty Twenty-One) to see if the problem is theme-related.

    3. Check for Updates: Ensure that both WordPress and Rank Math are updated to their latest versions, as updates often include bug fixes and performance improvements.

    4. Clear Cache: If you are using any caching plugins or server-side caching, clear all caches after making changes to ensure you are testing the most recent version of your site.

    If the issue persists after trying these steps, please reply to this ticket with any additional details or findings, and a human agent from our support team will take over and assist you further.

    Thank you for your understanding, and we appreciate your patience as we work to resolve this issue!

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Duplicate WP_Post::get_instance() query on single post pages’ is closed to new replies.