WPML

Overview of the Issue

When WP Rocket is used on a site configured with WPML’s ”Display as Translated” option, you will notice that when a post is translated the categories are not being copied, even though the option to “Copy taxonomies to translations” is enabled.

Workaround

This issue is fixed. Updating to the latest version solves it on your site, so you only need this workaround if you can’t update yet.

Please, make sure of having a full backup of your site before proceeding.

  • Add this code to your theme’s functions.php file:
    add_action('after_rocket_clean_post', function( $post ){
    		wp_cache_delete($post->ID, 'WPML_Cache_Terms_Per_Lang');
    });

All known issues

Still Seeing This Issue?

If updating doesn’t fix it, ask a support question and we’ll look into it with you.