Skip to content Skip to sidebar

Waiting for author

Topic Tags: Compatibility

Overview of the issue

If you are using WPML with Redis Object Cache plugin, you might encounter a problem where the Theme & Plugin Localization scan only localizes new strings after clearing the object cache manually. Specifically, when you delete a string from WPML > String Translation page, and scan the theme again, the deleted string doesn’t get re-added to String Translation unless you clear the Redis Object Cache first.

Workaround

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

  • Open your theme’s functions.php file.
  • Add the following line:
    //workaround compsupp-7057
    add_action( 'wpml_st_before_remove_strings', 'wp_cache_flush' );
    

2 Responses to “[Redis Object Cache] - Theme & Plugin Localization scan only localizes new strings after clearing Object Cache”

    • We recommend this workaround as deleting strings is not a frequent task. However, if you feel confortable with that workaround, please use it carefully as it hasn’t been tested by our development team.

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>