Skip to content

Commit

Permalink
Update UsingEvaluationsDataAdapter.mdx (#1986)
Browse files Browse the repository at this point in the history
  • Loading branch information
kat-statsig authored Sep 9, 2024
1 parent e1923ab commit 4d61551
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ and provide it to the Statsig client via [StatsigOptions.dataAdapter](/client/ja

When calling `StatsigClient.initializeSync`, the `StatsigEvaluationsDataAdapter` will load values
from Cache and provide them to the client. The client will also call refresh in the background via
`StatsigEvaluationsDataAdapter.getDataAsync`, leading to values lagging until the next time `initializeSync` or `updateUserSync` is called.
`StatsigEvaluationsDataAdapter.getDataAsync`, leading to values lagging until the next time `initializeSync` or `updateUserSync` is called. If you do not want this background refresh to happen, you can pass in `disableBackgroundCacheRefresh` in the options when calling `initializeSync`.

In practice (Unless an additional update call is made), this means that for the very first session of a given user, there will be no values, and not until the next session will the cache have values.

Expand Down

0 comments on commit 4d61551

Please sign in to comment.