Caching (incomplete)
For better performance Buddi uses caching in local storage for some method calls. If a method returns JSON taken from an API endpoint, the JSON object will contain _from_cache service property to let you know if the value was taken from cache or not. For example Buddi.getStoreData() will return: TODO: change the pic when the store format has got changed
The caching strategy will be described for each method individually(if it exists) below.
We cache the retailer products on the backend for 5 mins and clear the cache in some cases(when promotions, inventory get updated, etc).