Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix how to find which php script is triggering query

Discussion in 'Misc WordPress Requests' started by soeezauto, Apr 2, 2018.

  1. soeezauto

    Guest

    how to find which php script is triggering query, by soeezauto

    Hello

    I have an issue already reported here of multiple duplicate queries being generated.

    I’ve installed Query Monitor and Debug Bar and they tell me which is the query.

    That’s fine, but it does not indicates where is the query coming from, ie, which php script, or scripts, is generating those queries.

    For instance:

    SELECT option_name, option_value
    FROM wp_options
    WHERE autoload = 'yes'

    I know this is generated by function


    wp_load_alloptions

    which is on file


    wp-includes/options.php

    .

    But there’s a huge amount of php scripts that may trigger that function and the plugins above do not help to shed light on that question.

    Any ideas?

    Thanks

    how to find which php script is triggering query
     
    #1

Share This Page

Monarch Social Sharing Plugin