Skip Navigation

Resolved by author

Reported for: WPML String Translation 3.2.0

Topic Tags: Compatibility

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

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();
    	}
    });
    

Next steps to resolve this issue

We have reached out to the author in order to resolve this issue. If you would like to see this pushed forward quicker, you can leave a comment in WP-Optimize’s public support forum.

3 risposte a “WP-Optimize - Updating string translations is not available immediately on the front-end”

  1. This solution is not ideal, since my translators do not have access to the Purge Cache functionality. Only admins have this available. Please fix this as soon as possible, thank you.

Lasciare una risposta

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.

Potete usare questi tag:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>