Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Allan Collins

    (@collinsinternet)

    Hi Joel,

    Thank you for the screenshots. There is definitely something different about your WordPress install. Out of the box, the Debug Bar (without the other Debug Bar add-ons) should show “Object Cache” — your’s does not.

    My plugin does a check for the existence of $wp_object_cache before it loads a panel into the Debug Bar. My guess is that you have something missing.

    -Allan

    Plugin Author Allan Collins

    (@collinsinternet)

    Hi Joel,

    I’m just following up to see if you were able to find the cause for your issue. If so, can you please share?

    Thanks.

    -Allan

    Thread Starter joelataylor-1

    (@joelataylor-1)

    Hi Allan – it looks like my version of object-cache.php doesn’t have the method ‘stats’ so this line was returning false:

    $this->set_visible( is_object( $wp_object_cache ) && method_exists( $wp_object_cache, 'stats' ) );

    I’ve been using this version of a object-cache file: https://github.com/tollmanz/wordpress-pecl-memcached-object-cache – but I’ll open a support ticket with to see what they suggest.

    In the mean time I manually added my own stats method and the panel does show now. However, I’m not sure how to look up an entry using the two fields. I’ve been storing some data using the Transients API – and I’m only specifying a key (no group) – so how do I use the tool to find an entry?

    Plugin Author Allan Collins

    (@collinsinternet)

    Hi Joel,

    You should be using WP Object Cache methods to store this data: https://codex.www.ads-software.com/Class_Reference/WP_Object_Cache

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can't see the Cache Lookup option in Debug Bar’ is closed to new replies.