• I really like this plugin! Lots of useful infromation. I do need help with a problem. All of my Query times are 0.00s. This is true in both the admin bar and the detailed information displays. I have the following in my wp-config.php –

    define(‘WP_DEBUG’, true);
    define(‘WP_DEBUG_LOG’, true);
    define(‘WP_DEBUG_DISPLAY’, false);
    define(‘SAVEQUERIES’, true);

    ANy idea what I am doing wrong?

    The page I need help with: [log in to see the link]

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

    (@johnbillion)

    WordPress Core Developer

    Is there a message displayed in red at the top of the Queries panel regarding the db.php dropin? It may be that another plugin has put a db.php file in place and therefore information about the queries being run isn’t available to QM.

    Thread Starter n1fdadmin

    (@n1fdadmin)

    Thank you for your help.

    I do see a note at the top of the Queries panel that says “Object Cache” followed by a link titled “External object cache in use”. The contents of the link are –

    advanced-cache.php
    Advanced caching plugin.

    object-cache.php
    Memcached Redux
    External object cache.

    The real Memcached (not Memcache) backend for the WP Object Cache.

    Version 0.1.5 | By Scott Taylor – uses code from Ryan Boren, Denis de Bernardy, Matt Martz, Mike Schroder | Visit plugin site
    db.php
    Query Monitor Database Class
    Custom database class.

    I am guessing the third one is the problem. Is there any way to determine which of the plugins on our site is causing the problem?

    Thread Starter n1fdadmin

    (@n1fdadmin)

    LEt me ask my question this way. I can see the Query Monitor is extending the wpdb class to include statics. etc. What sort of conflict am I looking for in terms of other plugins? A different extension of the wpdb class perhaps?

    Thread Starter n1fdadmin

    (@n1fdadmin)

    Don’t see any messages in red in the Query Monitor menu or at the top of the detailed information displays.

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Thanks. The problem I was looking for was if a plugin other than QM was utilising a wp-content/db.php file. It looks like that’s not the case.

    There could be a problem with another dropin file. Which caching plugin(s) are you using on the site?

    Thread Starter n1fdadmin

    (@n1fdadmin)

    We are using WP Super Cache and DreamHost (our hosting service) runs a varnish cache. We use Cloudflare as our CDN. Also checked and the proper link to db.php is in place in wp-content.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You’re on DreamPress, so we actually DON’T recommend you use wp super cache (since that can cause caching latency headaches). That’s why we provided Varnish HTTP Purge for you ?? (NB: The varnish plugin doesn’t actually do any caching, it just tells Varnish when to flush a page’s cache).

    Anyway. On DreamPress, you have Varnish and Memcached. You can disable memcached working with WP by renaming the object-cache.php file to object-cache.txt however that shouldn’t be a long term fix.

    Thread Starter n1fdadmin

    (@n1fdadmin)

    Thank you for the information and suggestion. I have removed WP Super Cache.

    Not sure I know where object-cache.php is located. Can you help me with that? Thank you.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    It’s in the folder wp-content, same level as plugins and themes.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘All Query Times 0.00’ is closed to new replies.