Skip to content

Fetch features#104

Merged
vazarkevych merged 16 commits intogrowthbook:mainfrom
vazarkevych:fetch-features
Mar 4, 2026
Merged

Fetch features#104
vazarkevych merged 16 commits intogrowthbook:mainfrom
vazarkevych:fetch-features

Conversation

@vazarkevych
Copy link
Collaborator

This PR adds TTL support and implements a stale-while-revalidate caching strategy for feature fetching:

Cached features are returned immediately if they are still valid.
If the cache is expired or missing, features are fetched from the network and the cache is updated.
These changes address issue , where feature data might never refresh, causing stale experiments to persist.

Volodymyr Nazarkevych added 3 commits July 28, 2025 14:14
# Conflicts:
#	Sources/CommonMain/Features/FeaturesViewModel.swift
#	Sources/CommonMain/GrowthBookSDK.swift
# Conflicts:
#	Sources/CommonMain/Features/FeaturesViewModel.swift
#	Sources/CommonMain/GrowthBookSDK.swift
@vazarkevych vazarkevych requested review from madhuchavva and removed request for madhuchavva December 17, 2025 09:49
@madhuchavva
Copy link
Contributor

@vazarkevych Looks like there are test failures.

@vazarkevych vazarkevych merged commit 2c0dfb8 into growthbook:main Mar 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants