Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:

Automatic exchange rate updates were not working when using the currencylayer API and W3 Total Cache plugin.

Solution:

- Disable the W3 Total Cache plugin on the staging site and set hourly automatic exchange rate updates to confirm the issue.

- Contact W3 Total Cache support for assistance with excluding the cron job related to the currencylayer service.

Relevant Documentation:

https://wpml.org/documentation/plugins-compatibility/optimize-multilingual-website-performance-using-w3-total-cache/

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 4 replies, has 3 voices.

Last updated by Jerzy Afanasjew 1 year, 9 months ago.

Assisted by: Christopher Amirian.

Author Posts
February 17, 2023 at 7:15 am #13054701

Jerzy Afanasjew

Hello, I am having issues with automatic exchange rate. I am connected to currencylayer API, connection works, I can update manually. But even though I set it to daily auto updates it does not updated automatically ever. Is this a caching issue? if so, what file should I exclude from my caching ?

February 17, 2023 at 7:35 am #13054841

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Hi,

Do you have a staging website without any caching, so not server or plugin caching? If so, can you perhaps set "hourly" schedule four this and observe if this happens there as well?

This may give us some ideas.

Regards,
Bruno Kos

February 17, 2023 at 9:28 am #13055633

Jerzy Afanasjew

Thank you for the suggestion. I disabled w3tc plugin (caching and optimization plugin) on my staging site and set hourly automatic exchange rate updates. When I saved settings it did update. Now after 62 minutes it did automatically update the exchange rate, confirming that w3tc pluging is at fault. Please advise how to proceed.

February 19, 2023 at 7:00 am #13063613

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Please kindly ask the W3 Total cache to see if they have a solution.

Please ask them that you are using the "currencylayer" service and the WPML uses a simple cron job to get the updated information.

They might have the option to exclude the cron job. I am not sure.

I also suggest that you check the documentation below and make sure all the settings of the W3 Total Cache plugin is set correctly according to the documentation:

https://wpml.org/documentation/plugins-compatibility/optimize-multilingual-website-performance-using-w3-total-cache/

Thanks.

February 20, 2023 at 8:16 am #13067029

Jerzy Afanasjew

Thank you, the issue was in caching admin pages. WPML guide on w3tc helped! have a great day. My issue is resolved now. Thank you!