• Hi,

    This is David from the WPML compatibility team.

    You recently introduced a fix for WPML. You can see it over here:
    https://plugins.trac.www.ads-software.com/browser/wp-fastest-cache/trunk/inc/cache.php#L101

    But that fix was only supposed to run when WPML is configured to use a different domain per language.

    Now we are experiencing problems when WPML is configured to use a different directory for each language.

    Could you please change the fix something like this so that it works in all situations?

    //WPML language switch
    $language_negotiation_type = apply_filters( 'wpml_setting', false, 'language_negotiation_type' );
    if ($this->isPluginActive('sitepress-multilingual-cms/sitepress.php') && 2 == $language_negotiation_type ) {
        $current_language = apply_filters('wpml_current_language', false);
        $this->cacheFilePath = str_replace('/cache/all/', '/cache/all/'.$current_language.'/', $this->cacheFilePath);
    }

    Let me know if you will include this change.
    Thanks

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Emre Vona

    (@emrevona)

    thank you. I changed it. Can you confirm it please?

    Thread Starter David Garcia Watkins

    (@dgwatkins)

    We tested the development version of WP Fastest cache in both, “different directory” and “different domain” URL Language formats.

    It works without issues or errors and the cache files are created correctly.

    Thanks for the speedy response!

    Plugin Author Emre Vona

    (@emrevona)

    thank you too ??

    Hello,
    I’have a multilingual website (WP version 4.9.8) and installed WP Fastest Cache.
    I see that the main italian website is cached and fast while the english is slower. I know there’s a compatibility problem between WPML and WP Fastest Cache. I’m reading about it but I don’t understand how to solve it. My WPML is configured for the parameter ?lang=en so not configured to use a different domain per language or different directory for each language. Can you please help?
    Thank you.

    The website is https://parlanti.com

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fix for WPML compatibility’ is closed to new replies.