Title: WP Multilang cache issue Patch
Last modified: July 8, 2019

---

# WP Multilang cache issue Patch

 *  Resolved [hugomineiro](https://wordpress.org/support/users/hugomineiro/)
 * (@hugomineiro)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp-multilang-cache-issue-patch/)
 * Hi, thank you for all your work so far with this plugin! You have managed to 
   create a must have plugin for everyone using the WP REST API, without it loading
   times are horrible.
 * I was facing an issue when using the plugin WP Multilang, the cache would be 
   set on the first language visited and served to all languages from then on.
 * After looking at your source code I noticed that I was able to patch this very
   simply by adding the language from the request object.
 * trait-controller.php line 47
    $key = $this->get_id( $item ) . “_” . $request[‘
   lang’];
 * I tried looking for the github repo to create a pull request but didn’t find 
   it. Would it be possible to include this on an upcoming version of your plugin?
 * Once again, I am really grateful for making the only cache plugin that actually
   works with the rest api!

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

 *  Plugin Author [Acato](https://wordpress.org/support/users/acato/)
 * (@acato)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp-multilang-cache-issue-patch/#post-11726077)
 * Hi [@hugomineiro](https://wordpress.org/support/users/hugomineiro/)
 * Thank you for using our plugin! And your kind words 🙂
 * We just released a new version of our plugin. For several reasons and the fact
   that the Item API Cache wasn’t adding a real performance boost (the real performance
   boost comes from the Endpoint API Cache), we have decided to remove it completely.
   So I would say that also solves your problem, right?
    -  This reply was modified 6 years, 11 months ago by [Acato](https://wordpress.org/support/users/acato/).
 *  [bobo_italy](https://wordpress.org/support/users/bobo_italy/)
 * (@bobo_italy)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp-multilang-cache-issue-patch/#post-11731971)
 * No, I’m facing the same issue with WPML and the latest version of the plugin 
   2019.4.0, but the workaround suggested by [@hugomineiro](https://wordpress.org/support/users/hugomineiro/)
   doesn’t apply anymore, even though URIs differ per language (in our case /wp-
   json is italian, /en/wp-json is english).
    Hope you could fix the problem!
 *  Thread Starter [hugomineiro](https://wordpress.org/support/users/hugomineiro/)
 * (@hugomineiro)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp-multilang-cache-issue-patch/#post-11732079)
 * Hi [@bobo_italy](https://wordpress.org/support/users/bobo_italy/) I still haven’t
   gone around to test the latest version of the plugin. But I think in our case
   it should solve the problem, as the initial cache would not be set. I have to
   mention that this is patch is not for WPML but for WP Multilang [https://wordpress.org/plugins/wp-multilang/](https://wordpress.org/plugins/wp-multilang/)
   I found this to be a much better option for our use case.
 * Hope you manage to find a solution, I will post the results after we test with
   this last plugin version. Thanks for the update [@acato](https://wordpress.org/support/users/acato/)
 *  [bobo_italy](https://wordpress.org/support/users/bobo_italy/)
 * (@bobo_italy)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wp-multilang-cache-issue-patch/#post-11732205)
 * Thanks for the info, I will post a new issue!
 *  Thread Starter [hugomineiro](https://wordpress.org/support/users/hugomineiro/)
 * (@hugomineiro)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/wp-multilang-cache-issue-patch/#post-11757331)
 * Hi [@acato](https://wordpress.org/support/users/acato/) I can confirm that the
   last version of the plugin solves the language problem for wp-multilang plugin.
   Thanks for your help.

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

The topic ‘WP Multilang cache issue Patch’ is closed to new replies.

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

 * 5 replies
 * 3 participants
 * Last reply from: [hugomineiro](https://wordpress.org/support/users/hugomineiro/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/wp-multilang-cache-issue-patch/#post-11757331)
 * Status: resolved