https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
p

purple-telephone-24836

08/02/2023, 8:31 AM
Hi! I have some questions about cache. I've started like this:
Copy code
const data = await getFeaturesWithAxios(featuresEndpoint)
growthBook = new GrowthBook({ enableDevMode })
growthBook.setFeatures(data.features) // All is ok. I can see my features.
1. How does
fetchFeaturesWithCache
works (source)? I don't understand line 122. Is this some inner logic of GrowthBook or I am able to trigger it by some events?
8 Views