Solved

Caching offerings - how to update offerings

  • 17 November 2021
  • 3 replies
  • 593 views

Badge +1

I’ve updated my subscriptions/products in Google Play and restarted my app, but RevenueCat Purchases.getOfferings() never updates with updated titles, descriptions, or pricing. How do I bust the cache to get subscription/product updates?

I have a Flutter app and am running the purchases_flutter: ^3.6.0 package.

icon

Best answer by cody 19 November 2021, 18:09

View original

3 replies

Badge +2

@cody 

 

Does it make sense to put in the documentation for displaying products that there is a 5 minute cache?

 

Userlevel 5
Badge +8

Hey @Nathan Zabaldo! 👋

The on-device cache of offerings, as well as PurchaserInfo, lasts for approximately 5 minutes. An app restart will re-fetch the latest offerings from the dashboard, or if you are calling getOfferings often, it will be refresh after that expiration. You can read more about fetching and displaying offerings here: https://docs.revenuecat.com/docs/displaying-products

Badge +1

They’ve updated now that I closed and reopened the emulator.

Reply