I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

Reply To: [wallets_balance template="list"] doesn't update balance until clear cache

dashed-slug.net Forums General discussion [wallets_balance template="list"] doesn't update balance until clear cache Reply To: [wallets_balance template="list"] doesn't update balance until clear cache

#4377
alexg
Keymaster

Thank you for reporting this! I will add it to the troubleshooting section!

Glad you got the issue resolved. Some background info:

In general, most API calls are not cached by the plugin, and the ones that are, have a very short expiry time, simply to aid in performance. The get_coins_info JSON API call is the one responsible for retrieving balances and is cached for 30 seconds to avoid abuse. The frontend then polls this API every 5 minutes by default, but this is configurable. Additionally, if you switch to another tab and then back to your site’s frontend, this triggers a refresh of the server data. In the future I would like to add a button so that a user can manually refresh the data. Unfortunately due to the architecture of WordPress it is not possible to have live feeds via websockets, so it has to be polling.

kind regards