WPML

Overview of the Issue

When you use WP-Optimize for caching and update a previously-translated string, logged-out users aren’t able to see the change immediately. They will need to manually clear their cache to detect the changes.

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 be sure to make a full backup of your site before proceeding.

  1. Open your theme’s functions.php file.
  2. Add the following code:
    add_action( 'wpml_st_add_string_translation', function() {
    	if ( class_exists( 'WPO_Page_Cache' ) ) {	
    		( new WPO_Page_Cache )->purge();
    	}
    });

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.