Title: change language cache problem
Last modified: May 30, 2018

---

# change language cache problem

 *  [Andrea](https://wordpress.org/support/users/licoreo/)
 * (@licoreo)
 * [8 years ago](https://wordpress.org/support/topic/change-language-cache-problem/)
 * hi, i have a problem with wp menu cart and wpml:
 * i have a multilanguage website it/en if i open the italian version i have the
   flyout in italian
    if i switch in en version, the flyout still in italian but
   if i’m in eng version of site and i update the cart the flyout is in english,
   so i think that is a problem of cache
 * is possible force the clean cache on switch language or disable cache at all?
 * thank you for your time

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

 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/change-language-cache-problem/#post-10344244)
 * Hi! There is currently a bug in WPML (specifically WooCommerce Multilingual) 
   that does not reset the sessionstorage (which is a bit different from regular
   browser cache) when changing languages. In earlier versions this was handled 
   by WPML, if you chose a different language the sessionstorage was emptied and
   you saw the correct language. This problem not only affects Menu Cart but also
   at all other parts of WooCommerce that are updated live (via AJAX), such as the
   official Cart Widget. The problem will be resolved each time you perform an action
   in which the sessionstorage is updated. So if you change languages ​​and then
   add something to the cart, the language is correct, if you change then it will
   not be correct, then add something more then it will take the correct language–
   etc.
 * The problem is reported to WPML, but I advise you still to report it again, so
   that perhaps the issue gets higher priority. The bug is specifically in woocommerce-
   multilingual/res/js/cart_widget.js – this script normally resets the sessionstorage
   when the language changes, but that has not worked since a recent update.
 * If you need more information from our side, let us know!
 *  Thread Starter [Andrea](https://wordpress.org/support/users/licoreo/)
 * (@licoreo)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/change-language-cache-problem/#post-10345628)
 * ok, thank you

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

The topic ‘change language cache problem’ is closed to new replies.

 * ![](https://ps.w.org/wp-menu-cart/assets/icon-256x256.png?rev=2190480)
 * [WP Menu Cart](https://wordpress.org/plugins/wp-menu-cart/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-menu-cart/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-menu-cart/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-menu-cart/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-menu-cart/reviews/)

## Tags

 * [ajax](https://wordpress.org/support/topic-tag/ajax/)
 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [language switch](https://wordpress.org/support/topic-tag/language-switch/)

 * 2 replies
 * 2 participants
 * Last reply from: [Andrea](https://wordpress.org/support/users/licoreo/)
 * Last activity: [7 years, 12 months ago](https://wordpress.org/support/topic/change-language-cache-problem/#post-10345628)
 * Status: not resolved