• Hi, I just saw two duplicated queries coming from the core while releasing a new post:
    update_meta_cache()
    SELECT post_id, meta_key, meta_value
    FROM xxx_xxxx_postmeta
    WHERE post_id IN (1588)
    ORDER BY meta_id ASC

    WP_Term_Query->get_terms()
    SELECT t.*, tt.*
    FROM wpsoft_1436_terms AS t
    INNER JOIN xxx_xxxx_term_taxonomy AS tt
    ON t.term_id = tt.term_id
    WHERE tt.taxonomy IN (‘atum_location’)
    ORDER BY t.name ASC

    Should I do something in order to improve that or is it a core bug? Thank you! ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter diegpl

    (@diegpl)

    WP_Post::get_instance()
    SELECT *
    FROM wpsoft_1436_posts
    WHERE ID = 1597
    LIMIT 1

    I just found that one more and noticed that sometimes WP_Term_Query->get_terms() com even more than twice. Tks! ??

    Hi diegpl, I think I’m seeing the same problem as you, I have a customized get_term query, but using oquery monitor I noticed that in addition to my query is loading a complete query, did you have any success in solving this?

    View post on imgur.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Duplicated queries’ is closed to new replies.