Title: WPML issue
Last modified: August 3, 2021

---

# WPML issue

 *  Resolved [mleone20](https://wordpress.org/support/users/mleone20/)
 * (@mleone20)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/wpml-issue-21/)
 * Hi,
    We currently have some compatibily issue with WPML. The problem is that 
   the cache is not language based and thus the english version shows the italian
   cached version.
 * After some simple test we found that the cache directory is:
    cache/all for the
   italian version cache/all for the english version
 * Searching around we found this one [https://wpml.org/forums/topic/wpml-language-switch-wp-fastest-cache-issue/](https://wpml.org/forums/topic/wpml-language-switch-wp-fastest-cache-issue/)
   and after the integration of this solutions, the cache directory is setted correctly:
 * cache/all/it for the italian version
    cache/all/en for the english version
 * Is it normal this kind of behaviour or have i misconfigured wpml/wpfastestcache
   to work togheter?

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/wpml-issue-21/#post-14731258)
 * the rule has already been implemented.
    [https://plugins.trac.wordpress.org/browser/wp-fastest-cache/trunk/wpFastestCache.php#L961](https://plugins.trac.wordpress.org/browser/wp-fastest-cache/trunk/wpFastestCache.php#L961)
 *  Thread Starter [mleone20](https://wordpress.org/support/users/mleone20/)
 * (@mleone20)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/wpml-issue-21/#post-14733054)
 * Didn’t see that! I think it’s not working because of the
 * `$language_negotiation_type == 2`
 * Is there any particular reason for that?
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/wpml-issue-21/#post-14733421)
 * can you change the source code of wp fastest cache and try please?
 *  Thread Starter [mleone20](https://wordpress.org/support/users/mleone20/)
 * (@mleone20)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/wpml-issue-21/#post-14735335)
 * After removed the if it works.
    I think you’re assuming that the wpml is setted
   to use different domains but it’s not always like that. We’re currently use the
   query string as language selector (a parameter in the query string called “lang”).
 * I thinks it’s safe to remove that condition, it’s should be safe with the other
   2 behaviour of wpml.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/wpml-issue-21/#post-14735360)
 * I did not mean removing the condition. I just wanted you to change the number
   from 1 to 2.
 *  Thread Starter [mleone20](https://wordpress.org/support/users/mleone20/)
 * (@mleone20)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/wpml-issue-21/#post-14737048)
 * It doesnt work setting it to 1. I have to set it to 3 to make it works with that
   condition.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/wpml-issue-21/#post-14738508)
 * can you tell me a sample url please?
 *  Thread Starter [mleone20](https://wordpress.org/support/users/mleone20/)
 * (@mleone20)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/wpml-issue-21/#post-14738713)
 * Yeah, sure:
 * The home in english:
    [https://www.cioclubitalia.it/?lang=en](https://www.cioclubitalia.it/?lang=en)
 * The home in italian:
    [https://www.cioclubitalia.it/](https://www.cioclubitalia.it/)
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/wpml-issue-21/#post-14739516)
 * when a url contains a query string (?), the url is not cached.
    I recommend you
   to convert the url from “/?lang=en” to “/en”
 *  Thread Starter [mleone20](https://wordpress.org/support/users/mleone20/)
 * (@mleone20)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/wpml-issue-21/#post-14743154)
 * How strange, we found the cached version in the “all” directory in english version
   but after some test we actually seen that it doesn’t cache with only the query
   string.
 * Thanks for the help, we’ll change the configuration of WPML!
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/wpml-issue-21/#post-14743160)
 * you are welcome 🙂 if you vote, you make me so happy. 
    [https://wordpress.org/support/plugin/wp-fastest-cache/reviews/](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘WPML issue’ is closed to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/wpml-issue-21/#post-14743160)
 * Status: resolved