- Status
- Open
- Topic tags
- Bug, Compatibility
Overview of the issue
In some hosting environments, when using WPML for menu translations, users report intermittent issues where menus display as duplicated entries in the backend. After running troubleshooting actions in WPML > Support > Troubleshooting page, the menus reconnect correctly, but the issue reappears after some time.
Workaround
Please, make sure of having a full site backup of your site before proceeding.
- Open your theme’s functions.php file.
- Add the following snippet:
add_action( 'init', 'exclude_term_queries_from_object_cache' ); function exclude_term_queries_from_object_cache() { if ( wp_using_ext_object_cache() ) { wp_cache_add_non_persistent_groups( 'term-queries' ); } }