Cache Exchange Conversion
-
Question about how caching works.
Added 10 shortcodes to convert currency on a single post: 1 x USD to KRW, 8 x KRW to USD, 1 x USD to COP.
The post is not published yet but so far 15 API requests appear on openexchangerates.org only from testing. The Exchange Rates Cache is set to 900 (cannot go above 1000 but only need to check exchange rates 1x per day).
Is each set of exchange rates cached, i.e. USD to KRW, KRW to USD, USD to COP for a total of 3? Or, is each shortcode instance cached for a total of 10? Or, some other calculation?
My original assumption was the exchange rates are requested via API once per cache period and every conversion calculation is performed without further API requests. Otherwise, the number of API requests will be significant, but that does not seem to be the case.
What is the proper calculation to estimate how many API requests if for example 10 views (per day, per post) on 5 posts with 10 convert shortcodes (per post)?
Thanks for the help.
- The topic ‘Cache Exchange Conversion’ is closed to new replies.