How to Serve Different Elementor Cache Versions Based on WooCommerce Multilingual & Multicurrency Currency Switcher?
I am using the XStore theme for WooCommerce, which is running on Elementor. In order to maintain faster site performance, I have enabled Elementor element caching, which creates and stores an HTML version of an element on the server.
Additionally, I am using the WooCommerce Multilingual & Multicurrency plugin (WooCommerce Multilingual), which allows customers to switch between different currencies. The plugin syncs with an exchange service to get the latest currency rates, enabling the customer to choose their preferred currency from the available options.
The issue arises when a cached version is stored in a particular currency, e.g., EUR. When a customer changes the currency to USD, they will still see the cached version in EUR rather than USD. This creates a mismatch between the selected currency and the displayed content.
As the cache is global, I can’t regenerate the cache every time a single customer switches currencies. The cached content is the same for all users, meaning a change in currency doesn't automatically trigger cache regeneration for that specific user.
If anyone has experience solving this type of issue with Elementor and WooCommerce Multilingual & Multicurrency, I’d appreciate your insights.
