Shopify / mobile-buy-sdk-ios

Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using Apple Pay or their credit card.
MIT License
452 stars 199 forks source link

Sdk is not syncing immediately with store products information #1090

Closed manoharsinghrawat-cedcoss closed 4 years ago

manoharsinghrawat-cedcoss commented 4 years ago

if I make any change in product information in admin and save it and then query product using sdk , I still get the old information of product, even after trying about 10 minutes I am getting the same information till the app is reinstalled

dbart01 commented 4 years ago

You're hitting the local cache. If you want latest data, you'll need to bypass the cache. Having said that, I only recommend disabling the cache for development as it will have adverse UX side-effects in production.

Have a look at this issue for an example on how to work with cache policies.