The regular behaviour of Woo, when user enter a site there is a fetch call to ?wc-ajax=get_refreshed_fragments and this call is not being process again in other pages for this session. when i enable WPML i have 2 calls for ?wc-ajax=get_refreshed_fragments and after it a call in each page i visit, is it a bug ? this causing increate of unnecessary calls for our servers and it's vital when handling sites with large amount of visits/
We need to replicate this issue on a fresh WordPress installation. Then, if needed, I'll be able to escalate it to our compatibility team. For this, I created a test website with a clean WordPress install. You can access it through this link:
hidden link
With this link, you'll be directly logged in.
Could you please check whether the issue is reproducible on a clean WordPress installation?
I've already configured the basic configurations for WPML and WooCommerce.
Important! Do not import your site to the test site. We must replicate the problem on a fresh, clean WordPress installation.
Yes, this is reproducible in the link you sent. try checking with an empty cart.
When WPML is enabled, on every page refresh i get a fetch call to ?wc-ajax=get_refreshed_fragments (first time there is to calles, one from woo and one from WPML)
When WPML is disabled, woo call /?wc-ajax=get_refreshed_fragments only on the first page to and set the data in the browser storage and does not call this again (cart is empty there is no need to call it on every page unless the user make changes to the cart).
Our developers have reviewed this and confirmed that this is a known behavior in the current WooCommerce–WPML integration. While it can be inconvenient, it does not affect site functionality.
Fixing it requires bigger changes that may impact other parts of the system, so the team prefers to address it as part of a planned improvement cycle. It is currently scheduled for review in a future release.
We appreciate you bringing this to our attention and helping us improve the product. We will keep you updated when the version with the fix is released.