• Resolved jurasjo

    (@jurasjo)


    Hi

    I use Query Monitor and it shows me duplicate queries related to WP Tao:

    WTBP_WPTAO_DB->get()

    WTBP_WPTAO_Fingerprints->verify_cookie()
     1 call
    WTBP_WPTAO_Fingerprints->get_user_id()
     1 call

    and

    WTBP_WPTAO_Diagnostic->is_mailchimp_user()

    wtbp_wptao_hint_mailchimp_identified()
     1 call
    wtbp_wptao_hint_sales_campaigns_mailchimp()
    1 call

    There is also slow query:

    WTBP_WPTAO_Diagnostic->is_mailchimp_user()
    wp-content/plugins/wp-tao/includes/class-wptao-diagnostic.php:190

    Is this something that should be taken care of?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Damian Góra

    (@damian-gora)

    Hi,
    Thanks for reporting.
    We are aware of this and we will try to fix it in the future releases.

    best
    Damian

    Thread Starter jurasjo

    (@jurasjo)

    Hi
    Any progress with that slow query?

    LINK

    Plugin Author Michal Jaworski

    (@upsell)

    Hi @jurasjo,

    This queries (mailchimp) are run only on admin – they are not slow down your site for regular users.

    Nevertheless we will try to optimise this.

    Regards
    Michal

    Thread Starter jurasjo

    (@jurasjo)

    Thanks for the info. I would love to have this fixed.

    Plugin Author Michal Jaworski

    (@upsell)

    Hi @jurasjo,

    We’ve just released WP Tao 1.2.7 where duplicated queries are fixed.

    Thread Starter jurasjo

    (@jurasjo)

    Hi. It works nice now.

    For this slow query (which remains in this version) I found solution like this:

    remove_action ( ‘admin_init’, ‘wtbp_wptao_hint_mailchimp_identified’, 110 );
    remove_action( ‘admin_init’, ‘wtbp_wptao_hint_sales_campaigns_mailchimp’, 110 );

    Thread Starter jurasjo

    (@jurasjo)

    And one more thing. Some observation:

    When clicking/entering WP Tao Dashboard there is some info about a slow query like shown below:

    SCREEN1
    SCREEN2

    Plugin Author Michal Jaworski

    (@upsell)

    Plugin Author Michal Jaworski

    (@upsell)

    Hi @jurasjo,

    It’s currently optimised – you need to remember that we have to process large amount of data and we use PHP for that ??

    And one more thing – we use transient for caching dashboard so only once per some time queries need more time.

    Thread Starter jurasjo

    (@jurasjo)

    Good to know. Thanks for clarification.

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