Overview of the Issue
When using Redis Object Cache or Object Cache Pro with BuddyPress Multilingual you will experience problems with BuddyPress pages. In some situations, pages won’t display and in others, you will be incorrectly redirected.
This is caused by the bp_pages cache group which does not hold language information.
Workaround
This issue is fixed in WPML 4.7. Updating solves it on your site, so you only need this workaround if you can’t update yet.
By default, Redis Object Cache already excludes the groups “themes”, “plugins” and “counts”. The solution is to exclude the “bp_pages” group as well.
To do this, add the following lines to your wp-config.php file.
define( 'WP_REDIS_IGNORED_GROUPS', [ "counts", "plugins", "themes", "bp_pages" ] );
In case you are using Object Cache Pro plugin, add the groups in WP_REDIS_CONFIG file as explained here (opens in a new tab):
'non_persistent_groups' => [ 'counts', 'plugins', 'themes', 'bp_pages' ]
Alternatively, you can also follow the instructions of this another erratum.