Closed ash-jc-allen closed 4 years ago
This feature was added in release v3.0.0.
How long does the cache last for, please?
Hey @olimortimer! The exchange rates are cached forever without an expiry date/time 🙂
Thank you!
On Mon, 16 Jan 2023, 11:10 Ash Allen, @.***> wrote:
Hey @olimortimer https://github.com/olimortimer! The exchange rates are cached forever without an expiry date/time 🙂
— Reply to this email directly, view it on GitHub https://github.com/ash-jc-allen/laravel-exchange-rates/issues/35#issuecomment-1383882014, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJCRY4XM433UEQOP5U4XSLWSUUB7ANCNFSM4N24QKKA . You are receiving this because you were mentioned.Message ID: @.***>
At the moment, we force all exchange rates that are fetched to be stored in the cache before we return them. This could be an optional feature.
This feature could be added as either an optional parameter for each of the methods that it affects, or it could be added as a new chained method (e.g. -
...->doNotCache()->...
).