- Status
- Resolved by author
- Related plugin/theme
- WP Rocket
- Topic tags
- Compatibility
Overview of the issue
If you are using WP Rocket plugin, you may notice that currency changes on product pages are not being reflected immediately. Instead, the currency only updates after refreshing the page.
Workaround
Please, make sure of having a full site backup of your site before proceeding.
Option 1
- Go to Settings > WP Rocket page.
- Then in Advanced rules > Never Cache Cookies section, add this cookie:
wcml_client_currency
Option 2
- Add the following code into your theme’s functions.php file:
/* compsupp-7372 This filter adds ?wcmlc={currency_code} to the URL, which specifies a query string with the currency code. */ add_filter( 'wcml_is_cache_enabled_for_switching_currency', '__return_true' );