• Resolved dekazo

    (@dekazo)


    I’m getting the following duplicate query:
    It seems that everything is happening in the core part of WordPress,
    Does this need to be fixed?

    environment
    ・ WordPress ver → 6
    ・ PHP → 7.4.28
    ・ WordPress theme → Twenty Twenty-Two

    Duplicate query
    ・ Component → WordPress Core
    ・ Class → WP_Query-> get_posts ()
    ・ Quantity → 12

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    If there’s 12 calls to WP_Query then they are likely coming from the theme to populate posts on different sections of the site, but they could be coming from a plugin. Take a look through the “Caller” stack for the queries to see the details.

    Make sure you’ve got an object cache enabled as it will allow many of these queries to be cached, see the Overview -> Object Cache section for details.

    Thread Starter dekazo

    (@dekazo)

    Hi,Mr.john.
    Thank you for your early contact.
    I understand.
    I am helped by this wonderful plugin.
    have a good day for you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘About duplicate queries’ is closed to new replies.