• Resolved 415creative

    (@415creative)


    Hello, the plugin has stopped working on this site. It’s only working when I’m logged in as a user. When I visit the site on a different browser, it does not work. Can you please help?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author edo888

    (@edo888)

    @415creative Your cache plugin tries to optimize Google js library which causes issues. Here is what I see: /wp-content/cache/min/1/translate_a/element.js

    You need to add an exception in your cache plugin, so it does not optimize/cache https://translate.google.com/translate_a/element.js file.

    What cache plugin do you use? We have that script excluded by default for Litespeed and Rocket cache plugins.

    @edizionieufonia please feel free to open a new support topic and I’ll check it for you.

    Thread Starter 415creative

    (@415creative)

    Hello, I use WP Rocket as my cache plugin.

    Thanks!

    Plugin Author edo888

    (@edo888)

    Make sure that you are using the latest version of our plugin (6.0.12). If that does not solve the issue. Please add an exception rule in WP Rocket library, if that doesn’t help, then contact their support.

    We have the following code in place which notifies WP Rocket plugin to not optimize our js library:

    function cache_exclude_js_glt($excluded_js) {
        if(is_array($excluded_js) or empty($excluded_js))
            $excluded_js[] = 'translate.google.com/translate_a/element.js';
    
        return $excluded_js;
    }
    
    // LiteSpeed Cache
    add_filter('litespeed_optimize_js_excludes', 'cache_exclude_js_glt');
    
    // WP Rocket
    add_filter('rocket_exclude_js', 'cache_exclude_js_glt');

    You can share it with them as well.

    Thanks! ??

    • This reply was modified 3 years, 3 months ago by edo888.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Not working on site’ is closed to new replies.