BuddyBoss (BuddyPress) and Redis with custom form
-
Hi,
I have a custom code made that saves data into the xprofile of buddypress, and then I check that data before to load the form, and if the user has already completed it, then I redirect it to the home page.
With redis active, the form is loading always, I imagine this is because the request to get the xprofile data is empty the first time it loads, and then use the cache for that.
I add this on my wp-config:define( 'WP_REDIS_IGNORED_GROUPS', [ 'bp_xprofile', 'bp_xprofile_data', 'bp_xprofile_fields', 'bp_xprofile_groups', 'xprofile_meta', ] );
And now the options on my Redis configuration looks like this:
WP_REDIS_IGNORED_GROUPS: ["bp_xprofile","bp_xprofile_data","bp_xprofile_fields","bp_xprofile_groups","xprofile_meta"] Global Groups: [ "blog-details", "blog-id-cache", "blog-lookup", "global-posts", "networks", "rss", "sites", "site-details", "site-lookup", "site-options", "site-transient", "users", "useremail", "userlogins", "usermeta", "user_meta", "userslugs", "blog_meta", "bp", "bp_last_activity", "bp_member_type", "bp_xprofile", "bp_xprofile_data", "bp_xprofile_fields", "bp_xprofile_groups", "xprofile_meta", "bp_notifications", "notification_meta", "bp_groups", "bp_group_admins", "bp_group_invite_count", "group_meta", "bp_groups_memberships", "bp_groups_memberships_for_user", "bp_activity", "bp_activity_comments", "activity_meta", "bp_activity_follow", "bp_messages", "bp_messages_threads", "bp_messages_unread_count", "message_meta" ] Ignored Groups: [ "bp_xprofile", "bp_xprofile_data", "bp_xprofile_fields", "bp_xprofile_groups", "xprofile_meta", "counts", "plugins", "themes" ]
Do I need to exclude all those?
Will this be enough?
Or I am doing this all wrong?Thank you for your help.
Best regards
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘BuddyBoss (BuddyPress) and Redis with custom form’ is closed to new replies.