ナビゲーションをスキップする

Open

Reported for: BuddyPress Multilingual 1.7.0

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

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:

'non_persistent_groups' => [
    'counts',
    'plugins',
    'themes',
    'bp_pages'
]

Alternatively, you can also follow the instructions of this another erratum.

3 返答 へ “Problems with BuddyPress Multilingual and Redis Object Cache or Object Cache Pro”

    • Dear Bret,
      Since this is a configuration issue, it is still valid.
      Thanks for the correction, I have updated the code above.

返答する

トピックからそれないようにし、他のユーザーを尊重してください。この投稿に関係のない問題についてサポートが必要な場合は、サポート フォーラムを使用してチャットを開始するか、チケットを送信してください。

これらのタグを使用できます:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>