Closed GeekCornerGH closed 4 months ago
Hello, Thank you for your interest in this plugin and for the PR you’ve submitted. I believe it may not be the best course of action to switch from JSDelivr to Cloudflare. Here are my reasons:
The image above demonstrates that Cloudflare does not perform any caching.
Furthermore, it’s important to note that the primary purpose of this plugin is to provide quick conversions based on the market estimate for the day. I hope this clarifies my perspective. I’m open to further discussion and appreciate your contributions to improving this plugin.
Hi, you may check the comment I linked, where the author explained the caching issue
I saw the comment, and that is not an issue. Caching is a mechanism we deliberately implement and rely on. Without it, the server won't be able to handle huge traffic and the reliability won't be there. Unless there is a better alternative than moving to a web server with no caching to solve the issue of minor differences in currency values over a short period, we will be sticking with the cached endpoint itself.
It might be an issue for some people who need the conversion rate to be perfect all the time, at least in our case where we don't control the infrastructure for the server, it is not a wise decision to move to a less reliable endpoint. A 12-hour gap between currency rate changes is not a big deal personally
Fair enough
JSDelivr caches data for 12 hours, which impact data accuracy.
Per this issue comment, using the Cloudflare Pages endpoint is the way to go