Open
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' );
WP Rocket: You are using «Dynamic Cookies Cache». Cloudflare APO is not yet compatible with that feature.
You should either disable Cloudflare APO or check with the theme/plugin requiring the use of “Dynamic Cookies Cache” developers for an alternative way to be page-cache friendly. More info
https://docs.wp-rocket.me/article/1444-using-cloudflare-apo-with-wp-rocket?utm_source=wp_plugin&utm_medium=wp_rocket
i get this notification when adding this settings you provided, can you guys please fix your plugin!
Thanks Ali! I added these infos to our development ticket.
If you need any additional help regarding this, please create a new ticket or chat in our support area.