Fix for WPML compatibility
-
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#L101But 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.
ThanksThe page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Fix for WPML compatibility’ is closed to new replies.