• Resolved diegpl

    (@diegpl)


    SELECT?SQL_CALC_FOUND_ROWS wp_users.ID
    FROM?wp_users
    INNER?JOIN?wp_usermeta
    ON?( wp_users.ID = wp_usermeta.user_id )
    WHERE?1=1
    AND?( ( ( wp_usermeta.meta_key = 'wp_capabilities'
    AND?wp_usermeta.meta_value?LIKE?'%\"Administrator\"%' ) ) )
    ORDER?BY?user_login?ASC
    LIMIT?0, 1

    That is its chain:

    1. P_User_Query->query()
      wp-includes/class-wp-user-query.php:842
    2. WP_User_Query->__construct()
      wp-includes/class-wp-user-query.php:80
    3. Google\S\C\A\Has_Multiple_Admins->get()
      wp-content/plugins/google-site-kit/includes/Core/Authentication/Has_Multiple_Admins.php:65
    4. Google\S\C\A\Authentication->Google\S\C\A\{closure}()
      wp-content/plugins/google-site-kit/includes/Core/Authentication/Authentication.php:1065
    5. WP_REST_Server->respond_to_request()
      wp-includes/rest-api/class-wp-rest-server.php:1188
    6. WP_REST_Server->dispatch()
      wp-includes/rest-api/class-wp-rest-server.php:1035
    7. rest_do_request()
      wp-includes/rest-api.php:545
    8. rest_preload_api_request()
      wp-includes/rest-api.php:2911
    9. array_reduce()
      wp-includes/rest-api.php:2911
    10. Google\S\C\A\Assets->Google\S\C\A\{closure}()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:396
    11. Google\S\C\A\Script_Data->Google\S\C\A\{closure}()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Script_Data.php:51
    12. Google\S\C\A\Asset->before_print()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Asset.php:129
    13. Google\S\C\A\Assets->run_before_print_callbacks()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:1016
    14. Google\S\C\A\Assets->run_before_print_callbacks()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:1025
    15. Google\S\C\A\Assets->run_before_print_callbacks()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:1025
    16. Google\S\C\A\Assets->run_before_print_callbacks()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:1025
    17. Google\S\C\A\Assets->Google\S\C\A\{closure}()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:155
    18. do_action('wp_print_scripts')
      wp-includes/plugin.php:517
    19. wp_print_head_scripts()
      wp-includes/script-loader.php:2177
    20. do_action('wp_head')
      wp-includes/plugin.php:517
    21. wp_head()
      wp-includes/general-template.php:3053
    22. load_template('wp-content/themes/esites/header.php')
      wp-includes/template.php:785
    23. locate_template()
      wp-includes/template.php:720
    24. get_header('shop')
      wp-includes/general-template.php:48
Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter diegpl

    (@diegpl)

    SELECT?FOUND_ROWS()

    1. WP_User_Query->query()
      wp-includes/class-wp-user-query.php:859
    2. WP_User_Query->__construct()
      wp-includes/class-wp-user-query.php:80
    3. Google\S\C\A\Has_Multiple_Admins->get()
      wp-content/plugins/google-site-kit/includes/Core/Authentication/Has_Multiple_Admins.php:65
    4. Google\S\C\A\Authentication->Google\S\C\A\{closure}()
      wp-content/plugins/google-site-kit/includes/Core/Authentication/Authentication.php:1065
    5. WP_REST_Server->respond_to_request()
      wp-includes/rest-api/class-wp-rest-server.php:1188
    6. WP_REST_Server->dispatch()
      wp-includes/rest-api/class-wp-rest-server.php:1035
    7. rest_do_request()
      wp-includes/rest-api.php:545
    8. rest_preload_api_request()
      wp-includes/rest-api.php:2911
    9. array_reduce()
      wp-includes/rest-api.php:2911
    10. Google\S\C\A\Assets->Google\S\C\A\{closure}()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:396
    11. Google\S\C\A\Script_Data->Google\S\C\A\{closure}()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Script_Data.php:51
    12. Google\S\C\A\Asset->before_print()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Asset.php:129
    13. Google\S\C\A\Assets->run_before_print_callbacks()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:1016
    14. Google\S\C\A\Assets->run_before_print_callbacks()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:1025
    15. Google\S\C\A\Assets->run_before_print_callbacks()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:1025
    16. Google\S\C\A\Assets->run_before_print_callbacks()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:1025
    17. Google\S\C\A\Assets->Google\S\C\A\{closure}()
      wp-content/plugins/google-site-kit/includes/Core/Assets/Assets.php:155
    18. do_action('wp_print_scripts')
      wp-includes/plugin.php:517
    19. wp_print_head_scripts()
      wp-includes/script-loader.php:2177
    20. do_action('wp_head')
      wp-includes/plugin.php:517
    21. wp_head()
      wp-includes/general-template.php:3053
    22. load_template('wp-content/themes/esites/header.php')
      wp-includes/template.php:785
    23. locate_template()
      wp-includes/template.php:720
    24. get_header('shop')
      wp-includes/general-template.php:48

    That is another one.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    Hi @diegpl thanks for opening the support topic and making us aware of these. I will put these to the team to see if there is anything we can do to improve upon this.

    If there is anything else I can help with then please let me know.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @diegpl Just following back with you after discussing this with the team. This is expected and should only be while you are logged in using Site Kit.

    This shouldn’t happen for visitors to your site. I will mark this topic as resolved but if you have any further questions please feel free to ask.

    Thread Starter diegpl

    (@diegpl)

    Yes, I know that is while logged, but taking db queries with no reason, slowing down the performance. In every single page these queries are happening…

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @diegpl Thanks for your feedback it’s always appreciated. We are always looking to improve on Site Kit and performance and if there are any ways we can do that we will look to do it.

    Thanks once more for flagging this with us.

    +1 Experiencing the same issue. Fine it’s not a problem if you site does not have many logged in users, but for those with high traffic of logged in users we are seeing this as an issue.

    Plugin Support Adam Dunnage

    (@adamdunnage)

    @dkjensen Thanks for adding a comment here. As mentioned above, the team are always looking at these and how to best improve on the Site Kit experience.

    If you do encounter any further issues that have impact on the functionality of Site Kit then please do report these to us in a new support topic and we will be happy to help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Google Site Kit not needed query slowing down’ is closed to new replies.