Title: [bps_directory] doesn&#8217;t work with object caching enabled
Last modified: January 24, 2021

---

# [bps_directory] doesn’t work with object caching enabled

 *  Resolved [hemligg](https://wordpress.org/support/users/hemligg/)
 * (@hemligg)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/bps_directory-doesnt-work-with-object-caching-enabled/)
 * I have found that shortcode [bps_directory] doesn’t work when running Redis Object
   Cache.
    The Buddyboss member directory page works fine along with a BP Profile
   Search form though. But when I try to make a custom page displaying members with[
   bps_directory] it does not work. Unless I disable object caching.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbps_directory-doesnt-work-with-object-caching-enabled%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * (@dontdream)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/bps_directory-doesnt-work-with-object-caching-enabled/#post-13949595)
 * Hi hemligg,
 * Yes, additional member directories made with [bps_directory] may not work well
   with persistent cache plugins.
 * In this case, try setting the BuddyPress ‘bp_pages’ cache group as non-persistent.
 * Does this work for you?
 *  Thread Starter [hemligg](https://wordpress.org/support/users/hemligg/)
 * (@hemligg)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/bps_directory-doesnt-work-with-object-caching-enabled/#post-13950944)
 * I added this to wp-config.php
 * define( ‘WP_REDIS_IGNORED_GROUPS’, [
    ‘counts’, ‘plugins’, ‘themes’, ‘bp_pages’]);
 * But that didn’t help.
 *  Plugin Author [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * (@dontdream)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/bps_directory-doesnt-work-with-object-caching-enabled/#post-13953405)
 * Hi hemligg,
 * I’m not very familiar with _Redis Object Cache_, but your code looks fine to 
   me.
 * It’s confirmed, in a different context, in this page:
 * [https://wpml.org/errata/problems-with-buddypress-multilingual-and-redis-object-cache/](https://wpml.org/errata/problems-with-buddypress-multilingual-and-redis-object-cache/)
 * And sometimes it’s reported not to take effect immediately, see:
 * [https://wordpress.org/support/topic/wp_redis_ignored_groups-2/](https://wordpress.org/support/topic/wp_redis_ignored_groups-2/)
 * Which _Ignored Groups_ are reported in your _Diagnostics_ tab?
 *  Thread Starter [hemligg](https://wordpress.org/support/users/hemligg/)
 * (@hemligg)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/bps_directory-doesnt-work-with-object-caching-enabled/#post-13954062)
 * Thanks for your support. And sorry for taking your time. I just realized it didn’t
   take effect because I added the definition within a commented section. 😀 …Embarrassing
   really. 😐 …But problem solved and it works just like you said! Thanks again!
   🙂
 *  Plugin Author [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * (@dontdream)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/bps_directory-doesnt-work-with-object-caching-enabled/#post-13959415)
 * No problem, you are very welcome!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[bps_directory] doesn’t work with object caching enabled’ is closed to
new replies.

 * ![](https://ps.w.org/bp-profile-search/assets/icon.svg?rev=1568973)
 * [BP Profile Search](https://wordpress.org/plugins/bp-profile-search/)
 * [Support Threads](https://wordpress.org/support/plugin/bp-profile-search/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-profile-search/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-profile-search/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-profile-search/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Andrea Tarantini](https://wordpress.org/support/users/dontdream/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/bps_directory-doesnt-work-with-object-caching-enabled/#post-13959415)
 * Status: resolved